How can I notify user mode of custom data events?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

New questions are always arising in this adventure of kernel driver
programming.

I have already succeeded to retrieve data from a device driver which was
blocked by the HIDClass. My driver is based on the hidfx2usb sample.

I have created a raw pdo in order to have a sideband communication with the
driver and retrieve/set data and features.

However, I need a syncronized way of getting data from the device. From time
to time, my device as new data and I would like to subscribe some kind of
notification that new data has arrived and its in a complete form, to then be
copied to the user side application.

I could have a closed loop in a different thread always requesting data from
the device thru iocontrol operations, but... is this an efficient way of
doing it?

In the white paper "User Mode Interactions for Kernel Mode Drivers" is
refered something about syncronization and notification with shared events.

I would like to know if this is what I'm looking for, and if there is any
sample on the DDK that exemplifies the use of this features.

With my best regards,

Thanks,

Nuno
.



Relevant Pages