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

> I need to get notice when the network linkup. Because there are no
good way

to do it in user mode.

Really? I expect some WMI stuff to provide this. At least MS’s usual
try icon for networking does this.

Max

As far as I know: The WMI dose not do well with LAN connection status
changes.
But may be I didnot do thoroughly test.

lu

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Friday, September 27, 2002 10:32 AM
To: File Systems Developers
Subject: [ntfsd] Re: What IRQLs are ProtocolStatus() and
ProtocolStatusComplete() run on?

I need to get notice when the network linkup. Because there are no
good way
to do it in user mode.

Really? I expect some WMI stuff to provide this. At least MS’s usual
try icon for networking does this.

Max


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


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