From: SMTP%"MDettmer-Radtke@pyrasol.com" 15-OCT-1997 17:04:56.88 To: Edwin Bufler CC: NT Developers Subj: RE: Problems creating named events in a kernel mode driver Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Wed, 15 Oct 1997 16:59:25 -0400 Received: from mv.mv.com (root@mv.mv.com [192.80.84.1]) by bort.mv.net (8.8.5/mem-951016) with ESMTP id PAA10698 for ; Wed, 15 Oct 1997 15:36:52 -0400 (EDT) Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by mv.mv.com (8.8.5/mem-940616) with SMTP id PAA18622 for ; Wed, 15 Oct 1997 15:35:30 -0400 (EDT) Received: by gw.atria.com id Wed, 15 Oct 1997 08:41:07 -0400 Received: from inet1.pyrasol.com by gw.atria.com id Wed, 15 Oct 1997 08:41:03 -0400 Received: by inet1 with Internet Mail Service (5.0.1457.3) id ; Wed, 15 Oct 1997 08:40:06 -0400 Message-ID: From: Matt Dettmer-Radtke To: Edwin Bufler Cc: NT Developers Subject: RE: Problems creating named events in a kernel mode driver Date: Wed, 15 Oct 1997 08:40:00 -0400 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1457.3) Content-Type: text/plain Sender: owner-ntdev@atria.com Precedence: bulk Edwin, Try this as your event name instead: > #define EVENT_NAME L"\\BaseNamedObjects\\SYNCH_EVENT" > I'm not sure where it's documented that you have to use "BaseNamedObjects" to create named objects from the kernel, but the examples I've seen all use that. Good luck! Matt > ---------- > From: Edwin Bufler[SMTP:bufler@hugo.rz.fh-ulm.de] > Sent: Wednesday, October 15, 1997 6:39 AM > To: Mailing list > Subject: Problems creating named events in a kernel mode driver > > Hey, > > I have problems in creating a named event in a kernel mode driver > using > the IoCreateNotificationEvent() or IoCreateSynchronizationEvent() > functions.The problem is, that the functions always fails (the return > value is always NULL). > > Does anybody know why??? > > Below you see the piece of code that does not work > > Thanks in advance > > Edwin > > > #define EVENT_NAME L"SYNCH_EVENT" > > typedef struct TEST01_DEVICE_EXTENSION{ > . > . > PKEVENT SynchEvent; > HANDLE hSynchEvent; > . > . > } TEST01_DEVICE_EXTENSION, *PTEST01_DEVICE_EXTENSION; > > > NTSTATUS DriverEntry( > IN PDRIVER_OBJECT pDrvObj, > IN PUNICODE_STRING pRegPath) > { > . > . > . > RtlInitUnicodeString(&LEventName,EVENT_NAME); > pDevExt->SynchEvent = > IoCreateSynchronizationEvent(&LEventName,&(pDevExt->hSynchEvent)); > > if (pDevExt->SynchEvent == NULL) > DbgPrint("Error creating named event!"); > . > . > . > } > > > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > [ To unsubscribe, send email to ntdev-request@atria.com with body > UNSUBSCRIBE (the subject is ignored). ] > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]