WDF_POWER_POLICY_EVENT_CALLBACKS structure (wdfdevice.h)
[Applies to KMDF and UMDF]
The WDF_POWER_POLICY_EVENT_CALLBACKS structure contains pointers to a driver's power policy event callback functions.
Syntax
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;
Members
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.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum KMDF version | 1.0 |
Minimum UMDF version | 2.0 |
Header | wdfdevice.h (include Wdf.h) |