EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION fonction de rappel (wdfdevice.h)
[S’applique à KMDF uniquement]
Notes
Cette fonction de rappel est destinée à un usage interne à Microsoft uniquement.
La fonction de rappel d’événement EvtDevicePowerStateChange d’un pilote informe le pilote que la machine d’état d’alimentation d’un appareil passe d’un état à un autre.
Syntaxe
EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION EvtWdfDevicePowerStateChangeNotification;
void EvtWdfDevicePowerStateChangeNotification(
[in] WDFDEVICE Device,
[in] PCWDF_DEVICE_POWER_NOTIFICATION_DATA NotificationData
)
{...}
Paramètres
[in] Device
Handle pour un objet d’appareil d’infrastructure.
[in] NotificationData
Pointeur vers une structure de WDF_DEVICE_POWER_NOTIFICATION_DATA fournie par l’infrastructure qui identifie les états anciens et nouveaux de la machine à états.
Valeur de retour
None
Remarques
Pour inscrire une fonction de rappel EvtDevicePowerStateChange , un pilote doit appeler WdfDeviceInitRegisterPowerStateChangeCallback.
Pour plus d’informations, consultez Machines d’état dans l’infrastructure.
Si la fonction de rappel EvtDevicePowerStateChange appelle WdfDeviceStopIdle avec le paramètre WaitForD0 défini sur TRUE, la machine d’état d’alimentation de l’infrastructure est bloquée.
Configuration requise
Condition requise | Valeur |
---|---|
Plateforme cible | Universal |
Version KMDF minimale | 1.0 |
En-tête | wdfdevice.h (inclure Wdf.h) |
IRQL | PASSIVE_LEVEL |