From: SMTP%"phreak@iag.net" 25-NOV-1997 21:00:45.31 To: ntfsd@atria.com CC: Subj: RE: [ntfsd] Fw: Kernel mode vs. Win32 events ?!? Return-Path: owner-ntfsd@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Tue, 25 Nov 1997 20:57:11 -0500 Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by mercury.mv.net (8.8.8/mem-971025) with SMTP id UAA17545 for ; Tue, 25 Nov 1997 20:29:19 -0500 (EST) Received: by gw.atria.com id Tue, 25 Nov 1997 17:52:34 -0500 Received: from mailhub.iag.net by gw.atria.com id Tue, 25 Nov 1997 17:52:30 -0500 Received: (qmail 14865 invoked from network); 25 Nov 1997 22:56:42 -0000 Received: from shell.iag.net (HELO iag.net) (root@204.27.210.69) by eris.iag.net with SMTP; 25 Nov 1997 22:56:42 -0000 Received: from da-phreak (phreak@dyn222u.wnpk.fl.iag.net [207.30.6.222]) by iag.net (8.8.6/8.8.6.Beta3) with SMTP id RAA05206 for ; Tue, 25 Nov 1997 17:49:05 -0500 (EST) Message-Id: <3.0.32.19971125055308.00980510@mail.iag.net> X-Sender: phreak@mail.iag.net X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 25 Nov 1997 05:53:11 -0500 To: ntfsd@atria.com From: Phillip Susi Subject: RE: [ntfsd] Fw: Kernel mode vs. Win32 events ?!? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-ntfsd@atria.com Precedence: bulk At 02:12 PM 11/25/97 -0500, you wrote: Question: why do you use \BaseNamedObjects instead of \DosDevices or create a symbolic link there? I may have read something about events belonging there but I cant remember. >Check the NT DDK sample async. > >Create an event in your driver: > >RtlInitUnicodeString (&eventName, L"\\BaseNamedObjects\\YourEvent") ; >Event = IoCreateNotificationEvent (&eventName, &EventHandle) ; > >Use KeSet/Reset/ClearEvent( Event,...) to set/reset/clear your event. >Use ZwClose( EventHandle) to close it. > >Open your event in your Win32 app: > > event = OpenEvent (SYNCHRONIZE, FALSE, " YourEvent ") ; > ... > WaitForSingleObject (event, INFINITE) ; > > > > >-----Original Message----- >From: Maxim Tseitlin [SMTP:maxim@brm.com] >Sent: Tuesday, November 25, 1997 12:23 PM >To: 'ntfsd@atria.com' >Subject: [ntfsd] Fw: Kernel mode vs. Win32 events ?!? > > > >Stephane wrote in article ><01bcf9ba$07048020$8c1003c3@guyane>... > My kernel mode driver sets an event created by my Win32 code... But the >PC hangs !!! > Can this be done? > Win32 deals with event handles and NT drivers deal with event object... >Is > there any compatibility? > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >[ To unsubscribe, send email to ntfsd-request@atria.com with body >UNSUBSCRIBE (the subject is ignored). ] > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >[ To unsubscribe, send email to ntfsd-request@atria.com with body >UNSUBSCRIBE (the subject is ignored). ] > > -->Phillip Susi Phreak@iag.net - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntfsd-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]