Partager via


EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION fonction de rappel (wdfdevice.h)

[S’applique uniquement à KMDF]

Note

Cette fonction de rappel est destinée uniquement à l’utilisation interne de Microsoft.

La fonction de rappel d’événement evtDevicePnpStateChange du pilote informe le pilote que la machine d’état Plug-and-Play d’un appareil passe d’un état à un autre.

Syntaxe

EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION EvtWdfDevicePnpStateChangeNotification;

VOID EvtWdfDevicePnpStateChangeNotification(
  [in] WDFDEVICE Device,
  [in] PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData
)
{...}

Paramètres

[in] Device

Handle vers un objet d’appareil framework.

[in] NotificationData

Pointeur vers une structure WDF_DEVICE_PNP_NOTIFICATION_DATA fournie par le framework qui identifie les anciens et nouveaux états de l’ordinateur d’état.

Valeur de retour

Aucun

Remarques

Pour inscrire une fonction de rappel EvtDevicePnpStateChange, un pilote doit appeler WdfDeviceInitRegisterPnpStateChangeCallback.

Pour plus d’informations sur l’ordinateur d’état PnP de l’infrastructure, consultez machines d’état dans le framework.

Exigences

Exigence Valeur
plateforme cible Universel
version minimale de KMDF 1.0
d’en-tête wdfdevice.h (include Wdf.h)
IRQL PASSIVE_LEVEL

Voir aussi

EvtDevicePowerPolicyStateChange

EvtDevicePowerStateChange