Thanks for replying to my query...
Could u please send a sample code for this...
I could not able to do this..
Anand.
Speech and Software Technologies.
www.sstil.com
Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:e8rSolDhDHA.3784@tk2msftngp13.phx.gbl...
Hi.
How can I SetEvents in the kernal mode which are initialised by the user
mode without completing the IRP.... so that the user mode can know that the
event is signalled?
Iam using a DeviceIoControl( ) in the user mode and this comes to the Kernal
mode as an IRP. DeviceIoControl ( ) is called in an asynchronous mode with
lpOverLapped ( with a handle to an event created in the UserMode) . When I
complete this IRP in the kernal mode the the event is fired and the UserMode
which waits in the WaitForSingleObject (for this event) gets processed.
Now I want to Set the Event (created in the UserMode) in the Kernal Mode
without completing the related IRP.
I have two questions...
If I send the event in the IOBuffer and extract it and set it using
KeSetEvent in KMD, does the WaitForSingleObject ( ) in UserMode fires????
Or
Is there any other mechanism, by which I can send messages to the UserMode
from the KernalMode without using IRP???
Thanks
Anand.