// extension.h
typedef struct _NET_EXTENSION {
void *Reserved[4];
union {
BOOLEAN Enabled;
void *Reserved1;
} DUMMYUNIONNAME;
} NET_EXTENSION;
View the official Windows Driver Kit DDI referenceNo description available.
The NET_EXTENSION structure represents a packet extension for all packets in a packet queue.
ReservedReserved. Client drivers must not read or write to this value.
DUMMYUNIONNAMEA union that contains the Enabled and Reserved1 members.
DUMMYUNIONNAME.EnabledA boolean value that indicates if this extension is currently enabled for the packets in this queue.
DUMMYUNIONNAME.Reserved1Reserved. Client drivers must not read or write to this value.
Client drivers typically store packet extensions in the context space for each queue during queue creation, reducing calls out of the driver. Later, to retrieve packet extension information for a particular packet, the driver calls one of the wrapper functions around NetExtensionGetData.
For examples of creating packet queues, see Transmit and receive queues.