From: SMTP%"eliyasy@microsoft.com" 15-OCT-1997 20:47:37.42 To: "'Edwin Bufler'" , Mailing list CC: 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 20:47:28 -0400 Received: by gw.atria.com id Wed, 15 Oct 1997 15:38:49 -0400 Received: from mail4.microsoft.com by gw.atria.com id Wed, 15 Oct 1997 15:38:43 -0400 Received: by mail4.microsoft.com with Internet Mail Service (5.5.1664.3) id <401KMPT2>; Wed, 15 Oct 1997 12:35:44 -0700 Message-ID: <6130E934329DCF11983300805F688B580268443F@RED-35-MSG.dns.microsoft.com> From: Eliyas Yakub To: "'Edwin Bufler'" , Mailing list Subject: RE: Problems creating named events in a kernel mode driver Date: Wed, 15 Oct 1997 09:49:17 -0700 X-Mailer: Internet Mail Service (5.5.1664.3) Sender: owner-ntdev@atria.com Precedence: bulk Your event name should be L"\\BaseNamedObjects\\SYNCH_EVENT". Eliyas > -----Original Message----- > From: Edwin Bufler [SMTP:bufler@hugo.rz.fh-ulm.de] > Sent: Wednesday, October 15, 1997 3:40 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). ]