Everhart,Glenn From: acc@wipinfo.soft.net Sent: Thursday, March 26, 1998 1:49 AM To: ntdev@atria.com Subject: Re:[ntdev] KeWaitForSingleObject in Dispatch Routine >Date: Wed, 25 Mar 1998 21:13:28 -0500 >From: Doug Kehn >Subject: [ntdev] KeWaitForSingleObject in Dispatch Routine > >I have a requirement to perform synchronous I/O in a unique way...the >dispatch routine is not to return until the I/O operation has completed. = > >That is I can not return STATUS_PENDING from the dispatch routine and let= > >StartIo do the work. I was thinking that I could call >KeWaitForSingleObject (using an Event object that is contained in the >device extension) in the dispatch routine and set the event in the >DpcForIsr routine. Everything executed as planned until I attempt to >execute KeSetEvent in the DpcForIsr routine. When this routine is called= > I >**blue screen** due to a page fault. >Has anyone done something similar? thanks... You need to do KeInitializeEvent() with event type "Notification Event' during DriverEntry() or DriverReinitialize() (This may sound very preliminary , excuse me if you are already doing it). Regards, -Aniruddha ------------------------------------------------------------------------------ Aniruddha C. Chiplunkar (e-mail : acc@wipinfo.soft.net) ------------------------------------------------------------------------------ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]