Hi!
Try the following way:
in User-mode App:
- create two events with names
Event1= CreateEvent( NULL, TRUE, FALSE, NULL );
Event2= CreateEvent( NULL, TRUE, FALSE, NULL ); - via your custom IOCTL code send event handles to Driver using
DeviceIoControl.
In Kernel Mode driver call ObjReferenceObjectByHandle() with received
handles to obtain pointer to KEVENT struct. That’s all.
Now you can wait this events in driver and app.
With regards
AIDS xxxxx@programmer.net