// nettxqueue.h
void NetTxQueueGetExtension(
[_In_] NETPACKETQUEUE PacketQueue,
[_In_] const NET_EXTENSION_QUERY *Query,
[_Out_] NET_EXTENSION *Extension
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetTxQueueGetExtension function retrieves a packet extension for all packets in a transmit (Tx) queue.
PacketQueue [_In_]The transmit queue object.
Query [_In_]A pointer to a driver-allocated and initialized NET_EXTENSION_QUERY structure that contains information about the desired packet extension.
Extension [_Out_]A handle to a driver-allocated NET_EXTENSION structure that receives the packet extension.
Client drivers typically call this function from their EvtNetAdapterCreateTxQueue callback function after queue creation. To prevent frequent extension queries, store the extension returned by this function in your queue context space.
For a code example of creating a transmit queue, see Transmit and receive queues.
Packet descriptors and extensions