As a query, the OID_GEN_MEDIA_CONNECT_STATUS_EX OID returns the connection state of an interface.
- Windows Vista and later
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.
- NDIS Network Interface OIDs