NET_PACKET_EXTENSION_INIT function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

The NET_PACKET_EXTENSION_INIT method initializes a NET_PACKET_EXTENSION structure.

Syntax

void NET_PACKET_EXTENSION_INIT(
  NET_PACKET_EXTENSION *Extension,
  PCWSTR               Name,
  ULONG                Version,
  SIZE_T               ExtensionSize,
  ULONG                Alignment
);

Parameters

Extension

A pointer to the driver-allocated NET_PACKET_EXTENSION structure.

Name

The name of the packet extension.

Version

The version of the packet extension.

ExtensionSize

The size of the packet extension, in bytes.

Alignment

The alignment requirement for the extension.

Return Value

This method does not return a value.

Remarks

For more information about packet extensions and available packet extension constants, see Packet descriptors and extensions. For a code sample, see EvtNetAdapterCreateTxQueue or EvtNetAdapterCreateRxQueue.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.25
Header netadapterpacket.h (include netadaptercx.h)
IRQL PASSIVE_LEVEL