NetTxQueueGetExtension - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// nettxqueue.h

void NetTxQueueGetExtension(
  [_In_]  NETPACKETQUEUE            PacketQueue,
  [_In_]  const NET_EXTENSION_QUERY *Query,
  [_Out_] NET_EXTENSION             *Extension
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-nettxqueue-nettxqueuegetextension)

NetTxQueueGetExtension function

Description

The NetTxQueueGetExtension function retrieves a packet extension for all packets in a transmit (Tx) queue.

Parameters

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.

Remarks

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.

See also

Packet descriptors and extensions