How to set the Events to share between applicatin and Driver....

hi all,
can u explain how to create and set the events that is shared between application and driver…
Thanks in advance…Looking forward for ur earlier reply…

Sundar.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

for e.g

Create Event in Driver as IoCreateNotificationEvent(EventName,PKEVENT0

and open the same in Applicaion by OpenEvent(“Name”);

In my case i was setting it from Kernel Mode and waiting for that in
Apllication and upon any IOCTL call (in response to that event) i was
resetting it in KernelMode , but iwas not able to reset the Kernel mode
Event From application

Regards
Deepak


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

IoCreateNotificationEvent, and pass \BaseNamedObjects\EventName there.
Use EventName alone in user mode.

Max
----- Original Message -----
From: Somasundaram
To: NT Developers Interest List
Sent: Friday, September 07, 2001 11:41 AM
Subject: [ntdev] How to set the Events to share between applicatin and Driver…

hi all,
can u explain how to create and set the events that is shared between application and driver…
Thanks in advance…Looking forward for ur earlier reply…

Sundar.


You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Do you can create one event in your application and send it to your driver by DeviceIoControl.

After, in your driver, make reference to it with obReferenceObjectByHandle.

Then do you can use KeSetEvent, KeWaitForSingleObject, etc.

Regards
Heldai


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com