fonction NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT (netdevice.h)
La fonction NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT initialise une structure NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS.
Syntaxe
void NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT(
[_Out_] NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS *Callbacks
);
Paramètres
[_Out_] Callbacks
Pointeur vers une structure NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS allouée par le pilote.
Valeur de retour
Aucun
Remarques
Cette fonction supprime la structure NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS, puis remplit le membre Size. Après avoir appelé cette fonction, appelez NetDeviceInitSetPowerPolicyEventCallbacks pendant l’initialisation de l’appareil avant d’appeler WdfDeviceCreate.
Exigences
Exigence | Valeur |
---|---|
client minimum pris en charge | Windows 10, version 2004 |
plateforme cible | Universel |
version minimale de UMDF | 2.33 |
d’en-tête | netdevice.h (include netadaptercx.h) |
IRQL | Tout niveau tant que la mémoire cible est résidente |
Voir aussi
configuration de l' de gestion de l’alimentation
NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS