// ntddndis.h
typedef struct _NDIS_OPER_STATE {
NDIS_OBJECT_HEADER Header;
NET_IF_OPER_STATUS OperationalStatus;
ULONG OperationalStatusFlags;
} NDIS_OPER_STATE, *PNDIS_OPER_STATE;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_OPER_STATE structure provides the current operational state of an NDIS network interface.
HeaderThe NDIS_OBJECT_HEADER structure for the NDIS_OPER_STATE structure. Set the Type member of the structure that Header specifies to NDIS_OBJECT_TYPE_DEFAULT, the Revision member to NDIS_OPER_STATE_REVISION_1, and the Size member to NDIS_SIZEOF_OPER_STATE_REVISION_1.
OperationalStatusThe NET_IF_OPER_STATUS operational status type.
OperationalStatusFlagsThis member provides the reason why the OperationalStatus member is set to NET_IF_OPER_STATUS_DOWN or NET_IF_OPER_STATUS_DORMANT. This member is a ULONG value that contains a bitwise OR of a combination of the following flags:
The operational status is set to NET_IF_OPER_STATUS_DOWN because the default port of the miniport adapter is not authenticated.
The operational status is set to NET_IF_OPER_STATUS_DOWN because the miniport adapter is not in a media-connected state.
The operational status is set to NET_IF_OPER_STATUS_DORMANT because the miniport adapter is in the paused or pausing state.
The operational status is set to NET_IF_OPER_STATUS_DORMANT because the miniport adapter is in a low power state.
For the NDIS_STATUS_OPER_STATUS status indication, NDIS supplies an NDIS_OPER_STATE structure in the StatusBuffer member of the NDIS_STATUS_INDICATION structure.
NDIS_STATUS_OPER_STATUS indicates the current operational state of an NDIS network interface to overlying drivers.