As a query, use the OID_GEN_ADMIN_STATUS OID to determine the administrative status for an interface (ifAdminStatus from RFC 2863).
- Windows Vista and later
The administrative status is the status that the system administrator requested.
Only NDIS network 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_ADMIN_STATUS enumeration.