An overlying driver issues an object identifier (OID) query request of OID_QOS_CURRENT_CAPABILITIES to obtain the currently enabled NDIS Quality of Service (QoS) hardware capabilities of a network adapter.

After a successful return from the OID query request, the InformationBuffer member of the NDIS_OID_REQUEST structure contains a pointer to an NDIS_QOS_CAPABILITIES structure.

Note  This OID query request is handled by NDIS for miniport drivers that support the IEEE 802.1 Data Center Bridging (DCB) interface.


Miniport drivers register the currently-enabled NDIS QoS hardware capabilities of a network adapter when its MiniportInitializeEx function is called. The driver registers these capabilities by following these steps:

  1. The driver initializes an NDIS_QOS_CAPABILITIES structure with the enabled QoS hardware capabilities.

  2. The driver sets the CurrentQosCapabilities member of the NDIS_MINIPORT_ADAPTER_HARDWARE_ASSIST_ATTRIBUTES structure to a pointer to the NDIS_QOS_CAPABILITIES structure.

  3. The miniport driver then calls the NdisMSetMiniportAttributes function and sets the MiniportAttributes parameter to a pointer to an NDIS_MINIPORT_ADAPTER_HARDWARE_ASSIST_ATTRIBUTES structure.

Note  NDIS does not report the currently-enabled NDIS QoS hardware capabilities of a network adapter to overlying protocol and filter drivers during the bind or attach operations.

For more information on how to register NDIS QoS capabilities, see Registering NDIS QoS Capabilities.

Return Status Codes

NDIS handles the OID query request of OID_QOS_CURRENT_CAPABILITIES request for miniport drivers, and returns one of the following status codes.

Status Code Description


The OID request completed successfully.


The miniport driver does not support the NDIS QoS interface.


The length of the information buffer is less than sizeof(NDIS_QOS_CAPABILITIES). NDIS sets the DATA.QUERY_INFORMATION.BytesNeeded member in the NDIS_OID_REQUEST structure to the minimum buffer size that is required.


The request failed for other reasons.



Supported in NDIS 6.30 and later.


Ntddndis.h (include Ndis.h)

See also