oops, will copy code better next time
thanks
–
Roman Kudinov
Monday, August 30, 2004, 4:55:02 PM, you wrote:
KR> Hi roman…
KR> Bit typo mistake…try this out plz…this should work fine…
KR> ---------
KR>
KR> RtlInitUnicodeString(&strEventName,L"\BaseNamedObjects\DITEvent");
KR> pEvent = IoCreateSynchronizationEvent(&strEventName, &hEvent);
KR> ----------
KR> Chrs
KR> K.Raju
KR> -----Original Message-----
KR> From: Krishnama Raju
KR> Sent: Monday, August 30, 2004 6:11 PM
KR> To: Windows File Systems Devs Interest List
KR> Subject: RE: Re[2]: [ntfsd] IoCreateSynchronizationEvent
KR> Hi Roman…
KR> Try this…this should work fine…
KR> -------
KR> RtlInitUnicodeString(&strEventName,
KR> L"\BasedNamedObjects\DITEvent");
KR> pEvent = IoCreateSynchronizationEvent(&strEventName, &hEvent);
KR> ---------
KR> Good luck …
KR> Cheers
KR> K.Raju
KR> -----Original Message-----
KR> From: Roman Kudinov [mailto:xxxxx@rbcmail.ru]
KR> Sent: Monday, August 30, 2004 4:42 PM
KR> To: Windows File Systems Devs Interest List
KR> Subject: Re[2]: [ntfsd] IoCreateSynchronizationEvent
KR> Hello Maxim,
KR> No my DriverEntry runs on demand, i.e. I load the driver using SCM
KR> manually.
KR> I tried to do it in dispatch routine as well and it doesn’t work.
KR> I even tried to create an event not in BasedNamedObjects and it doesn’t
KR> work too.
KR> It seems that IoCreateSynchronizationEvent doesn’t work at all.
KR> If I pass a handle and will get KEVENT object for the handle will I be
KR> able to use this object in context of other processes?
KR> –
KR> Roman Kudinov
KR> Monday, August 30, 2004, 1:45:03 PM, you wrote:
MSS>> Surely.
MSS>> Your DriverEntry runs too early, when BaseNamedObjects is not
KR> created yet.
MSS>> Do not use named events. Instead, register the event by passing
KR> its handle
MSS>> via IOCTL parameter.
MSS>> Maxim Shatskih, Windows DDK MVP
MSS>> StorageCraft Corporation
MSS>> xxxxx@storagecraft.com
MSS>> http://www.storagecraft.com
MSS>> ----- Original Message -----
MSS>> From: “Roman Kudinov”
MSS>> To: “Windows File Systems Devs Interest List”
MSS>> Sent: Monday, August 30, 2004 1:36 PM
MSS>> Subject: [ntfsd] IoCreateSynchronizationEvent
>>> Hi,
>>>
>>> I can’t create a named event in my DriverEntry routine. Here is the
>>> snippet of code:
>>> --------------------------------------------
>>> RtlInitUnicodeString(&strEventName,
MSS>> L"\\BasedNamedObjects\DITEvent");
>>>
>>> pEvent = IoCreateSynchronizationEvent(&strEventName,
KR> &hEvent);
>>> if(!pEvent) //I can’t create a named event, so for the
>>> //testing purposes I create a regular event
>>> {
>>> KeInitializeEvent(&kEvent, SynchronizationEvent,
KR> FALSE);
>>> pEvent = &kEvent;
>>> }
>>> --------------------------------------------
>>>
>>> I tried both
>>> - to create the named event in user mode first
>>> - to create the named event in kernel mode first
>>>
>>> pEvent and hEvent are NULL after call to
KR> IoCreateSynchronizationEvent.
>>>
>>>
>>>
>>> I define variables on the global scope:
>>> PKEVENT pEvent;
>>> HANDLE hEvent;
>>>
>>>
>>>
>>> –
>>> Roman Kudinov
>>>
>>>
>>> mailto:xxxxx@rbcmail.ru
>>>
>>>
>>> —
>>> Questions? First check the IFS FAQ at
MSS>> https://www.osronline.com/article.cfm?id=17
>>>
>>> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
>>> To unsubscribe send a blank email to
>>> xxxxx@lists.osr.com
MSS>> —
MSS>> Questions? First check the IFS FAQ at
MSS>> https://www.osronline.com/article.cfm?id=17
MSS>> You are currently subscribed to ntfsd as: xxxxx@rbcmail.ru
MSS>> To unsubscribe send a blank email to
MSS>> xxxxx@lists.osr.com
KR> —
KR> Questions? First check the IFS FAQ at
KR> https://www.osronline.com/article.cfm?id=17
KR> You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com
KR> To unsubscribe send a blank email to
KR> xxxxx@lists.osr.com
KR> —
KR> Questions? First check the IFS FAQ at
KR> https://www.osronline.com/article.cfm?id=17
KR> You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
KR> ‘’
KR> To unsubscribe send a blank email to
KR> xxxxx@lists.osr.com
KR> —
KR> Questions? First check the IFS FAQ at
KR> https://www.osronline.com/article.cfm?id=17
KR> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
KR> To unsubscribe send a blank email to
KR> xxxxx@lists.osr.com