From: SMTP%"bohdan@alex.com" 25-NOV-1997 21:01:16.41 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:56:57 -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 RAA25976 for ; Tue, 25 Nov 1997 17:57:43 -0500 (EST) Received: by gw.atria.com id Tue, 25 Nov 1997 14:14:21 -0500 Received: from firewall.alex.com by gw.atria.com id Tue, 25 Nov 1997 14:14:18 -0500 Received: tid OAA04424; Tue, 25 Nov 1997 14:11:02 -0500 Received: by intranet.alex.com with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63) id <01BCF9AC.2AEDA600@intranet.alex.com>; Tue, 25 Nov 1997 14:12:30 -0500 Message-ID: From: "Raciborski, Bohdan" To: "'ntfsd@atria.com'" Subject: RE: [ntfsd] Fw: Kernel mode vs. Win32 events ?!? Date: Tue, 25 Nov 1997 14:12:29 -0500 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-ntfsd@atria.com Precedence: bulk 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). ]