Billy
Wed Oct 22 15:30:47 CDT 2003
Thanks, Calvin. What is the difference between these two
ways of checking network status (I mean
OID_GEN_MEDIA_CONNECT_STATUS vs. NdisMIndicateStatus)?
By the way, I tried to call NdisMIndicateStatus in
MPCheckForHang routine of NDIS Virtual Minidriver (sample
from DDK). The driver crashed. Any experience before?
>-----Original Message-----
>NDIS sends OID_GEN_MEDIA_CONNECT_STATUS to query the link
status of a
>miniport. Miniport driver returns
>NdisMediaStateConnected or NdisMediaStateDisconnected in
reponse to such an
>OID query.
>
>Also, Miniport calls NdisMIndicateStatus with
NDIS_STATUS_MEDIA_CONNECT or
>NDIS_STATUS_MEDIA_DISCONNECT to indicate a detected link
status change.
>
>HTH
>Calvin
>--
>Calvin Guan, Software Developer cguan@nospam.ati.com
>SW2D-Radeon NT Core Drivers
>ATI Technologies Inc.
>1 Commerce Valley Drive East
>Markham, Ontario, Canada L3T 7X6
>Tel: (905) 882-2600 Ext. 8654
>Find a driver:
http://www.ati.com/support/driver.html
>
>"Billy Ng" <ngbh@nswc.navy.mil> wrote in message
>news:03bb01c39752$aa0b0ff0$a401280a@phx.gbl...
>> Hi,
>>
>> For a netwrok card (ie. ethernet), how does windows know
>> if the network cable is unplugged? Does the driver
handle
>> any polling routine?
>>
>> The reason I am asking is because I am trying to a
virtual
>> network driver which drives the traffic to an
>> application. I need to find some way to determine if
that
>> application is running.
>>
>> Thanks,
>> Billy.
>
>
>.
>