就是有些网卡没有插网线,也叫link down,
在windows 的 网络和拨号连接 中显示一个小红叉,
如何编程区分这种类型的网卡?

解决方案 »

  1.   

    WIN 2K DDK NDIS MINIPORT:
    ______________________________________________OID_GEN_CO_MEDIA_CONNECT_STATUS
    This OID requests the miniport to return the connection status of the NIC on the 
    network as one of the following system-defined values:NdisMediaStateConnected
    NdisMediaStateDisconnected [ When a NIC miniport senses that the network connection has been lost, it should call NdisMCoIndicateStatus with NDIS_STATUS_MEDIA_DISCONNECT. When the connection is restored, it should call NdisMCoIndicateStatus with NDIS_STATUS_MEDIA_CONNECT. ]
      

  2.   

    to kingzai()
    多谢,但是我希望在应用层判断,能做到吗?
      

  3.   

    http://search.csdn.net/Expert/topic/2336/2336961.xml?temp=.1907007