fonction NET_PACKET_QUEUE_CONFIG_INIT (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 pour initialiser.
[_In_] EvtAdvance
Pointeur vers l’implémentation du 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 du 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 du pilote client de la fonction de rappel EVT_PACKET_QUEUE_CANCEL pour cette file d’attente de paquets.
Valeur de retour
Aucun
Remarques
Les pilotes clients doivent appeler cette fonction pour initialiser une structure NET_PACKET_QUEUE_CONFIG avant d’appeler NetTxQueueCreate ou NetRxQueueCreate pour créer une file d’attente de paquets.
Exigences
Exigence | Valeur |
---|---|
plateforme cible | Universel |
version minimale de KMDF | 1.27 |
version minimale de UMDF | 2.33 |
d’en-tête | netpacketqueue.h (include netadaptercx.h) |
bibliothèque | netadaptercxstub.lib |
IRQL | PASSIVE_LEVEL |