What you need is a mechanism to synchronize driver and application. The
simplest mechanism is sharing one or more
named events. Use CreateEvent( ) in application and create a named event,
this automatically creates a named event in
the object managers BaseNamedObjects directory. In the driver u can open and
share these event objects by calling
IoCreateNotificationEvent( ) and specifying the
“\BaseNamedObjects\NamespecifiedInApp” as the name
-----Original Message-----
From: abhishek rastogi [mailto:xxxxx@malkauns.nsc.com]
Sent: Friday, June 22, 2001 1:02 AM
To: NT Developers Interest List
Subject: [ntdev] sending message to the user application from a device
driver?
Dear All,
I am writing a Win32 application that will manage the Network Card. It will
notify the user when an interrupt of interest occurs. The application will
be waiting and the ISR of the driver should wake it up so that it will call
the appropriate driver IOCTL to obtain the type/severity of interrupt and
notify the same to the user. Is there any method by which a kernel mode
driver like NDIS miniport can wake the user mode application by sending some
event/message etc. as far as I know, the simple CreateEvent
,WaitForSingleObject etc. SDK functions will not work between the kernel
/user mode.
thanks in advance…
Abhishek Rastogi
You are currently subscribed to ntdev as: xxxxx@nai.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