RE: Synchronizing Kernel with User

Hi!
Try the following way:
in User-mode App:

  1. create two events with names
    Event1= CreateEvent( NULL, TRUE, FALSE, NULL );
    Event2= CreateEvent( NULL, TRUE, FALSE, NULL );
  2. 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