Using Shared Event
- From: "decoder" <rcg_golf@xxxxxxxxxxx>
- Date: Wed, 18 Jul 2007 18:46:33 -0800
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
.
- Follow-Ups:
- Re: Using Shared Event
- From: Doron Holan [MSFT]
- Re: Using Shared Event
- Prev by Date: Re: 64bit KMDF Driver is signed and installs fine, yet the driver details dialog box still shows "Not digitally signed"??
- Next by Date: Re: Virtual generic text printer
- Previous by thread: DOT11_OPERATION_MODE_NETWORK_MONITOR in NDIS 6.0 on Vista
- Next by thread: Re: Using Shared Event
- Index(es):
Relevant Pages
|