// wdfdevice.h
typedef struct _WDF_POWER_POLICY_EVENT_CALLBACKS {
ULONG Size;
PFN_WDF_DEVICE_ARM_WAKE_FROM_S0 EvtDeviceArmWakeFromS0;
PFN_WDF_DEVICE_DISARM_WAKE_FROM_S0 EvtDeviceDisarmWakeFromS0;
PFN_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED EvtDeviceWakeFromS0Triggered;
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX EvtDeviceArmWakeFromSx;
PFN_WDF_DEVICE_DISARM_WAKE_FROM_SX EvtDeviceDisarmWakeFromSx;
PFN_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED EvtDeviceWakeFromSxTriggered;
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON EvtDeviceArmWakeFromSxWithReason;
} WDF_POWER_POLICY_EVENT_CALLBACKS, *PWDF_POWER_POLICY_EVENT_CALLBACKS;
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WDF_POWER_POLICY_EVENT_CALLBACKS structure contains pointers to a driver's power policy event callback functions.
SizeThe size, in bytes, of this structure.
EvtDeviceArmWakeFromS0A pointer to the driver's EvtDeviceArmWakeFromS0 event callback function, or NULL.
EvtDeviceDisarmWakeFromS0A pointer to the driver's EvtDeviceDisarmWakeFromS0 event callback function, or NULL.
EvtDeviceWakeFromS0TriggeredA pointer to the driver's EvtDeviceWakeFromS0Triggered event callback function, or NULL.
EvtDeviceArmWakeFromSxA pointer to the driver's EvtDeviceArmWakeFromSx event callback function, or NULL.
EvtDeviceDisarmWakeFromSxA pointer to the driver's EvtDeviceDisarmWakeFromSx event callback function, or NULL.
EvtDeviceWakeFromSxTriggeredA pointer to the driver's EvtDeviceWakeFromSxTriggered event callback function, or NULL.
EvtDeviceArmWakeFromSxWithReasonA pointer to the driver's EvtDeviceArmWakeFromSxWithReason event callback function, or NULL.
The WDF_POWER_POLICY_EVENT_CALLBACKS structure is used as input to the WdfDeviceInitSetPowerPolicyEventCallbacks method.
Your driver should initialize its WDF_POWER_POLICY_EVENT_CALLBACKS structure by calling WDF_POWER_POLICY_EVENT_CALLBACKS_INIT.