Using Shared Event

Tech-Archive recommends: Speed Up your PC by fixing your registry



With XP: 1. User application creates an event and sends it down to the
driver using DeviceIoControl
2. Driver uses ObReferenceObjectByHandle to validate the
usermode handle, and convert the
handle to a ptr to underlying KEVENT object. This
allows it to be used in an arbitrary thread
such as in an ISR etc.
3. When done the driver uses ObDeferenceObject to release
its reference to the object and the
user application also calls CloseHandle on its
reference.


WinCE: Is there a similar mechanism? Basically I want to wake up a thread
in the user application, when my Win CE
SDIO driver's ISR callback gets invoked. The driver would
set the shared event, and the user thread would
wake up and reset the event using WaitForSingleObject...


Thanks

-decoder


.



Relevant Pages

  • Re: Unresolved Externals creating driver
    ... usbpdi.obj: error LNK2019: unresolved external symbol ... > an identical driver, under a different name. ... > I get in this vicious circle of putting in a reference to a library, ... > having the build complain about multiply defined symbols. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PATCH 1/1] : hwmon - new chip driver for TI ADS7828 A-D
    ... revised patch. ... driver, which seems to work well with the hardware I'm working with (a ... Operate with the internal 2.5v reference - set to N for external reference ...
    (Linux-Kernel)
  • Device callback object isnt referenced by the framework
    ... a while using "Developing Drivers with the Windows Driver Foundation" and the ... callback object doesn't implement any of the interfaces, ... I noticed that the fx won't take a reference to my device object as ... my driver crashes when they try to reference my device callback object ...
    (microsoft.public.development.device.drivers)
  • Re: [PATCH] fix rmmod sbp2 hang in 2.6.7
    ... Is the 'sg' driver loaded. ... When I load my SCSI HBA driver, ... It's because sg also got a reference. ... rmmod 'sg' then the rmmod of st frees up too. ...
    (Linux-Kernel)
  • Re: Shared Event
    ... Driver uses ObReferenceObjectByHandle to validate the ... when my Win CE SDIO driver's ISR callback gets invoked. ... The driver would set the shared event, and the user thread would ... wake up and reset the event using WaitForSingleObject... ...
    (microsoft.public.windowsce.embedded)