// nettxqueue.h
ULONG NetTxQueueInitGetQueueId(
[_In_] NETTXQUEUE_INIT *NetTxQueueInit
);
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves the identifier associated with a transmit queue.
NetTxQueueInit [_In_]A pointer to a NetAdapterCx-allocated NETTXQUEUE_INIT structure. For more information, see the Remarks section.
Returns a ULONG that identifies a transmit queue.
The client driver receives a pointer to a NETTXQUEUE_INIT structure in its EVT_NET_ADAPTER_CREATE_TXQUEUE callback function.
Starting with zero, NetAdapterCx assigns a unique identifier value for each queue that it creates. The client driver specifies the number of transmit queues that the network adapter supports in the MaximumNumberOfQueues member of the NET_ADAPTER_TX_CAPABILITIES structure, which is initialized and passed to NetAdapterSetDataPathCapabilities when starting a net adapter. Identifier values range from zero to the value of (((MaxNumber of TxQueues) + (MaxNumber of RxQueues)) - 1).