Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
[S’applique à KMDF et UMDF]
La structure WDF_PNPPOWER_EVENT_CALLBACKS contient des pointeurs vers les fonctions de rappel d’événements Plug-and-Play d’un pilote.
Syntaxe
typedef struct _WDF_PNPPOWER_EVENT_CALLBACKS {
ULONG Size;
PFN_WDF_DEVICE_D0_ENTRY EvtDeviceD0Entry;
PFN_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED EvtDeviceD0EntryPostInterruptsEnabled;
PFN_WDF_DEVICE_D0_EXIT EvtDeviceD0Exit;
PFN_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED EvtDeviceD0ExitPreInterruptsDisabled;
PFN_WDF_DEVICE_PREPARE_HARDWARE EvtDevicePrepareHardware;
PFN_WDF_DEVICE_RELEASE_HARDWARE EvtDeviceReleaseHardware;
PFN_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP EvtDeviceSelfManagedIoCleanup;
PFN_WDF_DEVICE_SELF_MANAGED_IO_FLUSH EvtDeviceSelfManagedIoFlush;
PFN_WDF_DEVICE_SELF_MANAGED_IO_INIT EvtDeviceSelfManagedIoInit;
PFN_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND EvtDeviceSelfManagedIoSuspend;
PFN_WDF_DEVICE_SELF_MANAGED_IO_RESTART EvtDeviceSelfManagedIoRestart;
PFN_WDF_DEVICE_SURPRISE_REMOVAL EvtDeviceSurpriseRemoval;
PFN_WDF_DEVICE_QUERY_REMOVE EvtDeviceQueryRemove;
PFN_WDF_DEVICE_QUERY_STOP EvtDeviceQueryStop;
PFN_WDF_DEVICE_USAGE_NOTIFICATION EvtDeviceUsageNotification;
PFN_WDF_DEVICE_RELATIONS_QUERY EvtDeviceRelationsQuery;
PFN_WDF_DEVICE_USAGE_NOTIFICATION_EX EvtDeviceUsageNotificationEx;
} WDF_PNPPOWER_EVENT_CALLBACKS, *PWDF_PNPPOWER_EVENT_CALLBACKS;
Membres
Size
Taille, en octets, de cette structure.
EvtDeviceD0Entry
Pointeur vers la fonction de rappel d’événements EvtDeviceD0Entry du pilote, ou NULL .
EvtDeviceD0EntryPostInterruptsEnabled
Pointeur vers la fonction de rappel d’événements EvtDeviceD0EntryPostInterruptsEnabled du pilote, ou NULL.
EvtDeviceD0Exit
Pointeur vers la fonction de rappel d’événements EvtDeviceD0Exit du pilote, ou NULL .
EvtDeviceD0ExitPreInterruptsDisabled
Pointeur vers la fonction de rappel d’événements EvtDeviceD0ExitPreInterruptsDisabled du pilote, ou NULL .
EvtDevicePrepareHardware
Pointeur vers la fonction de rappel d’événements EvtDevicePrepareHardware du pilote, ou NULL.
EvtDeviceReleaseHardware
Pointeur vers la fonction de rappel d’événements EvtDeviceReleaseHardware du pilote, ou NULL .
EvtDeviceSelfManagedIoCleanup
Pointeur vers la fonction de rappel d’événement EvtDeviceSelfManagedIoCleanup du pilote, ou NULL.
EvtDeviceSelfManagedIoFlush
Pointeur vers la fonction de rappel d’événement EvtDeviceSelfManagedIoFlush du pilote, ou NULL.
EvtDeviceSelfManagedIoInit
Pointeur vers la fonction de rappel d’événement EvtDeviceSelfManagedIoInit du pilote, ou NULL .
EvtDeviceSelfManagedIoSuspend
Pointeur vers la fonction de rappel d’événement evtDeviceSelfManagedIoSuspend du pilote, ou NULL.
EvtDeviceSelfManagedIoRestart
Pointeur vers la fonction de rappel d’événement EvtDeviceSelfManagedIoRestart du pilote ou NULL .
EvtDeviceSurpriseRemoval
Pointeur vers la fonction de rappel d’événement EvtDeviceSurpriseRemoval du pilote, ou NULL .
EvtDeviceQueryRemove
Pointeur vers la fonction de rappel d’événements EvtDeviceQueryRemove du pilote, ou NULL.
EvtDeviceQueryStop
Pointeur vers la fonction de rappel d’événements EvtDeviceQueryStop du pilote ou NULL.
EvtDeviceUsageNotification
Pointeur vers la fonction de rappel d’événements EvtDeviceUsageNotification du pilote, ou NULL .
EvtDeviceRelationsQuery
Pointeur vers la fonction de rappel d’événements EvtDeviceRelationsQuery du pilote ou NULL .
EvtDeviceUsageNotificationEx
Pointeur vers la fonction de rappel d’événement evtDeviceUsageNotificationEx du pilote ou NULL. Le membre EvtDeviceUsageNotificationEx est disponible dans la version 1.11 et les versions ultérieures de KMDF. Un pilote peut inscrire EvtDeviceRelationsQuery ou EvtDeviceUsageNotificationEx, mais pas les deux.
Remarques
La structure WDF_PNPPOWER_EVENT_CALLBACKS est utilisée comme entrée dans la méthode WdfDeviceInitSetPnpPowerEventCallbacks.
Votre pilote doit initialiser sa structure de WDF_PNPPOWER_EVENT_CALLBACKS en appelant WDF_PNPPOWER_EVENT_CALLBACKS_INIT.
Spécifications
| Besoin | Valeur |
|---|---|
| version minimale de KMDF | 1.0 |
| version minimale de UMDF | 2.0 |
| En-tête | wdfdevice.h (include Wdf.h) |