NET_PACKET_QUEUE_CONFIG_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_QUEUE_CONFIG_INIT method initializes a NET_PACKET_QUEUE_CONFIG structure.

Syntax

void NET_PACKET_QUEUE_CONFIG_INIT(
  NET_PACKET_QUEUE_CONFIG                   *Config,
  PFN_PACKET_QUEUE_ADVANCE                  EvtAdvance,
  PFN_PACKET_QUEUE_SET_NOTIFICATION_ENABLED EvtSetNotificationEnabled,
  PFN_PACKET_QUEUE_CANCEL                   EvtCancel
);

Parameters

Config

A pointer to the driver-allocated NET_PACKET_QUEUE_CONFIG structure to initialize.

EvtAdvance

A pointer to the client driver's implementation of the EVT_PACKET_QUEUE_ADVANCE callback function for this packet queue.

EvtSetNotificationEnabled

A pointer to the client driver's implementation of the EVT_PACKET_QUEUE_SET_NOTIFICATION_ENABLED callback function for this packet queue.

EvtCancel

A pointer to the client driver's implementation of the EVT_PACKET_QUEUE_CANCEL callback function for this packet queue.

Return Value

This method does not return a value.

Remarks

Client drivers must call this method to initialize a NET_PACKET_QUEUE_CONFIG structure before calling NetTxQueueCreate or NetRxQueueCreate to create a packet queue.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.27
Header netpacketqueue.h
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

See Also

NET_PACKET_QUEUE_CONFIG

NetTxQueueCreate

NetRxQueueCreate