Partager via


OID_GEN_MEDIA_CONNECT_STATUS_EX (Compact 7)

3/12/2014

As a query, this OID returns the connection state of an interface.

Remarks

NDIS uses this OID to query the connection state of an NDIS network interface provider. Only NDIS interface providers, and therefore not miniport drivers or filter drivers, must support this OID as an OID request.

If the query succeeds, the interface provider returns NDIS_STATUS_SUCCESS, and the result of the query can be one of the values in the NET_IF_MEDIA_CONNECT_STATE enumeration.

Miniport drivers supply the media connect status during initialization and provide updates with status indications.

To specify the connection state in a miniport driver, set the MediaConnectState member of the NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES structure that the miniport driver passes to the NdisMSetMiniportAttributes function.

Requirements

Header

ntddndis.h

See Also

Reference

NDIS Network Interface OIDs
NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES
NdisMSetMiniportAttributes
NET_IF_MEDIA_CONNECT_STATE