Hi. I want my driver to notify a user mode thread when an event happens.
For WDM, the preferred method (Oney) seemed to be creating a shared event
and pass this to the driver with a DeviceIOControl. In the driver you would
use ObReferenceObjectByHandle to get to the event.
Is this still the preferred way under WDF?
Is it better to create a DeviceIOControl that waits for the event (either
directly or through an overlapped call)?
Or is WMI and WdfWmiInstanceFireEvent the way to go?
I have tried the DeviceIOControl call that waits for the event but that
stops other DeviceIOControl calls getting to the driver. This is with
SynchronisationScope set to None.
Any advice appreciated.
Thanks.
Laurence.