RE: What IRQLs are ProtocolStatus() and ProtocolStatusCom plete() run on?

Queue a workitem.

-----Original Message-----
From: Lei Gao [mailto:xxxxx@yahoo.ca]
Sent: Thursday, September 26, 2002 7:01 AM
To: File Systems Developers
Subject: [ntfsd] What IRQLs are ProtocolStatus() and
ProtocolStatusComplete() run on?

Hi all,
I need to get notice when the network linkup. Because there are no good way
to do it in user mode. so I developed a network protocol driver to this. I
create a event in user mode and let my driver reference it in kernel mode by
calling DeviceIoControl() in user mode and calling
ObReferenceObjectByHandle() in kernel mode dispatch routine.
But I don’t know how to triger this event when my ProtocolStatus be called
while a linkup event occures.
(1).I call KeSetEvent() in ProtocolStatus() but I got a bugchk A: touch
paged pool in a high IRQL level.
(2). I created a system thread when the driver recieved
ObReferenceObjectByHandle command from user mode. and tried to call
KeWaitForSingleObject() in it to wait another kernel event which I 'd like
the ProtocolStatus to triger. but also got a Bugchk A when call
KeWaitForSingleOBject() in my system thread.

What is your suggestion?

Thanks in advance for any help.

Lu


Post your free ad now! http://personals.yahoo.ca


You are currently subscribed to ntfsd as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%