setevent problem



we have got 3 instances.
one driver and two applications.
ok
setevent() is in the driver only.

now there r two cases which have to be looked for ......

1. if am passing the address of setevent() and waiting for that event
(waitforsingleobject)
in one single application or the same application. it is working fine . no
problem.....

the trouble comes in the 2nd case......
2. passing the address of event and waiting for that event
(waitforsinglrobject)
in different thread and then seeting this event in driver in ISR. event is
not trigerred .....
in the first point the event setting is happening in normal driver function
not in ISR

what can be the problem. .....??????

hope to get a reply soon...

thnaks in advance

.



Relevant Pages

  • Re: SetEvent by driver in WinCE6
    ... I'm trying to get a driver to notify an application of the ... the SetEvent fails with error code ERROR_INVALID_HANDLE. ... All the syncronization object creation functions allow you to specify ... Use some kind of naming convention to name those events (I use my ...
    (microsoft.public.windowsce.platbuilder)
  • Re: PulseEvent and SetEvent
    ... code, that it doesn't matter in the context of that driver which is used, ... Paul T. ... PURGE_TXABORT using SetEvent. ... Certainly PulseEvent is *NOT* = SetEvent. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: how to notify application of an event from driver?
    ... >> In the driver I handle the abort button interrupt which will call other ... > driver receives an interrupt, it calls SetEvent, WaitForSingleObject ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: how to notify application of an event from driver?
    ... > After that the driver need to notify the CE 4.2 application to stop ... I think both SetEvent and PostMessage are suitable, ... driver receives an interrupt, it calls SetEvent, WaitForSingleObject ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Setting a user (application) event
    ... The handle passed to the driver via DeviceIoControl is in a structure. ... >The driver will call SetEvent() using the event handle received from XXX_ioctl. ... >then call GetLastErrorto retrieve the error code. ...
    (microsoft.public.windowsce.platbuilder)