NET_PACKET_QUEUE_CONFIG_INIT, fonction (netpacketqueue.h)

La fonction NET_PACKET_QUEUE_CONFIG_INIT initialise une structure NET_PACKET_QUEUE_CONFIG .

Syntaxe

void NET_PACKET_QUEUE_CONFIG_INIT(
  [_Out_] NET_PACKET_QUEUE_CONFIG                   *Config,
  [_In_]  PFN_PACKET_QUEUE_ADVANCE                  EvtAdvance,
  [_In_]  PFN_PACKET_QUEUE_SET_NOTIFICATION_ENABLED EvtSetNotificationEnabled,
  [_In_]  PFN_PACKET_QUEUE_CANCEL                   EvtCancel
);

Paramètres

[_Out_] Config

Pointeur vers la structure de NET_PACKET_QUEUE_CONFIG allouée par le pilote à initialiser.

[_In_] EvtAdvance

Pointeur vers l’implémentation par le pilote client de la fonction de rappel EVT_PACKET_QUEUE_ADVANCE pour cette file d’attente de paquets.

[_In_] EvtSetNotificationEnabled

Pointeur vers l’implémentation par le pilote client de la fonction de rappel EVT_PACKET_QUEUE_SET_NOTIFICATION_ENABLED pour cette file d’attente de paquets.

[_In_] EvtCancel

Pointeur vers l’implémentation par le pilote client de la fonction de rappel EVT_PACKET_QUEUE_CANCEL pour cette file d’attente de paquets.

Valeur de retour

None

Remarques

Les pilotes clients doivent appeler cette fonction pour initialiser une structure de NET_PACKET_QUEUE_CONFIG avant d’appeler NetTxQueueCreate ou NetRxQueueCreate pour créer une file d’attente de paquets.

Configuration requise

Condition requise Valeur
Plateforme cible Universal
Version KMDF minimale 1,27 %
En-tête netpacketqueue.h (inclure netadaptercx.h)
Bibliothèque netadaptercxstub.lib
IRQL PASSIVE_LEVEL

Voir aussi

NET_PACKET_QUEUE_CONFIG

NetTxQueueCreate

NetRxQueueCreate