Muokkaa

Jaa


OID_GEN_MEDIA_CONNECT_STATUS

As a query, the OID_GEN_MEDIA_CONNECT_STATUS OID requests the connection status of the NIC on the network.

Version Information

Windows Vista and later versions of Windows
Supported.

NDIS 6.0 and later miniport drivers
Not requested.

NDIS 5.1 miniport drivers
Mandatory.

Windows XP
Supported.

NDIS 5.1 miniport drivers
Mandatory.

Remarks

NDIS handles this OID for NDIS 6.0 and later miniport drivers.

The OID_GEN_MEDIA_CONNECT_STATUS OID requests the connection status of the NIC on the network as one of the following system-defined values:

NdisMediaStateConnected

NdisMediaStateDisconnected

When a miniport driver senses that the network connection has been lost, it must also call the NdisMIndicateStatusEx or NdisMCoIndicateStatusEx function with NDIS_STATUS_MEDIA_DISCONNECT (for NDIS 5.1) or NDIS_STATUS_LINK_STATE with MediaConnectStateDisconnected in the MediaConnectState property (for NDIS 6.x). When the connection is restored, it must then call NdisM(Co)IndicateStatus with NDIS_STATUS_MEDIA_CONNECT (for NDIS 5.1) or NDIS_STATUS_LINK_STATE with MediaConnectStateConnected in the MediaConnectState property (for NDIS 6.x).

Requirements

Header

Ntddndis.h (include Ndis.h)

See also

NdisMCoIndicateStatusEx

NdisMIndicateStatusEx