// ntddndis.h
typedef struct _NDIS_QOS_SQ_STATS {
NDIS_OBJECT_HEADER Header;
ULONG Flags;
NDIS_QOS_SQ_ID SqId;
NDIS_QOS_SQ_TYPE SqType;
UINT64 BytesTransmitted[NDIS_QOS_MAXIMUM_TRAFFIC_CLASSES];
UINT64 PktsTransmitted[NDIS_QOS_MAXIMUM_TRAFFIC_CLASSES];
} NDIS_QOS_SQ_STATS, *PNDIS_QOS_SQ_STATS;
View the official Windows Driver Kit DDI referenceNo description available.
The NDIS_QOS_SQ_STATS structure is used by OID_QOS_OFFLOAD_SQ_STATS to query the stats of an NDIS Quality of Service (QoS) Scheduler Queue (SQ).
HeaderThe type, revision, and size of the NDIS_QOS_SQ_STATS structure. This member is formatted as an NDIS_OBJECT_HEADER structure.
The miniport driver must set the Type member of Header to NDIS_OBJECT_TYPE_DEFAULT, the Revision member to NDIS_QOS_SQ_STATS_REVISION_1, and the Size member to NDIS_SIZEOF_QOS_SQ_STATS_REVISION_1.
FlagsNot used in NDIS_QOS_SQ_STATS_REVISION_1. The caller sets this field to zero.
SqIdAn NDIS_QOS_SQ_ID containing the SQ ID of the SQ. NDIS assigns this ID.
SqTypeAn NDIS_QOS_SQ_TYPE that contains the type of this SQ. This can be NdisQSQosSqSQTypeStandard from the enum definition of NDIS_QOS_SQ_TYPE.
BytesTransmittedAn array of UINT64 elements, one for each traffic class (TC). Each element specifies the total number of bytes on that TC for this SQ that have been successfully transmitted.
PktsTransmittedAn array of UINT64 elements, one for each traffic class. Each element specifies the total number of packets on that TC for this SQ that have been successfully transmitted.
If the query OID_QOS_OFFLOAD_SQ_STATS OID contains a valid vPortID, then the returned stats are specific to the vPort specified on this SQ.
If the query OID does not contain a valid vPortID, then the returned stats specify the total stats across all vPorts associated with the SQ.