structure WDF_PNPPOWER_EVENT_CALLBACKS (wdfdevice.h)

[S’applique à KMDF et UMDF]

La structure WDF_PNPPOWER_EVENT_CALLBACKS contient des pointeurs vers les fonctions de rappel des Plug-and-Play et des événements d’alimentation 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énement EvtDeviceD0Entry du pilote, ou NULL.

EvtDeviceD0EntryPostInterruptsEnabled

Pointeur vers la fonction de rappel d’événement EvtDeviceD0EntryPostInterruptsEnabled du pilote, ou NULL.

EvtDeviceD0Exit

Pointeur vers la fonction de rappel d’événement EvtDeviceD0Exit du pilote, ou NULL.

EvtDeviceD0ExitPreInterruptsDisabled

Pointeur vers la fonction de rappel d’événement EvtDeviceD0ExitPreInterruptsDisabled du pilote, ou NULL.

EvtDevicePrepareHardware

Pointeur vers la fonction de rappel d’événement EvtDevicePrepareHardware du pilote, ou NULL.

EvtDeviceReleaseHardware

Pointeur vers la fonction de rappel d’événement EvtDeviceReleaseHardware du pilote, ou NULL.

EvtDeviceSelfManagedIoCleanup

Pointeur vers la fonction de rappel de l’é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 de l’é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énement EvtDeviceQueryRemove du pilote, ou NULL.

EvtDeviceQueryStop

Pointeur vers la fonction de rappel d’événement EvtDeviceQueryStop du pilote, ou NULL.

EvtDeviceUsageNotification

Pointeur vers la fonction de rappel de l’événement EvtDeviceUsageNotification du pilote, ou NULL.

EvtDeviceRelationsQuery

Pointeur vers la fonction de rappel de l’événement 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 WDF_PNPPOWER_EVENT_CALLBACKS en appelant WDF_PNPPOWER_EVENT_CALLBACKS_INIT.

Configuration requise

Condition requise Valeur
Version KMDF minimale 1.0
Version UMDF minimale 2.0
En-tête wdfdevice.h (include Wdf.h)

Voir aussi

WDF_POWER_POLICY_EVENT_CALLBACKS