// 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 reference
No 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.
Size
The size, in bytes, of this structure.
EvtDeviceArmWakeFromS0
A pointer to the driver's EvtDeviceArmWakeFromS0 event callback function, or NULL.
EvtDeviceDisarmWakeFromS0
A pointer to the driver's EvtDeviceDisarmWakeFromS0 event callback function, or NULL.
EvtDeviceWakeFromS0Triggered
A pointer to the driver's EvtDeviceWakeFromS0Triggered event callback function, or NULL.
EvtDeviceArmWakeFromSx
A pointer to the driver's EvtDeviceArmWakeFromSx event callback function, or NULL.
EvtDeviceDisarmWakeFromSx
A pointer to the driver's EvtDeviceDisarmWakeFromSx event callback function, or NULL.
EvtDeviceWakeFromSxTriggered
A pointer to the driver's EvtDeviceWakeFromSxTriggered event callback function, or NULL.
EvtDeviceArmWakeFromSxWithReason
A 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.