Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[Applies to KMDF and UMDF]
The WDF_POWER_DEVICE_STATE enumeration identifies the device power states that a device might support.
Syntax
typedef enum _WDF_POWER_DEVICE_STATE {
WdfPowerDeviceInvalid = 0,
WdfPowerDeviceD0,
WdfPowerDeviceD1,
WdfPowerDeviceD2,
WdfPowerDeviceD3,
WdfPowerDeviceD3Final,
WdfPowerDevicePrepareForHibernation,
WdfPowerDeviceMaximum
} WDF_POWER_DEVICE_STATE, *PWDF_POWER_DEVICE_STATE;
Constants
WdfPowerDeviceInvalidValue: 0 The device power state is invalid or unknown. |
WdfPowerDeviceD0The D0 device power state. |
WdfPowerDeviceD1The D1 device power state. |
WdfPowerDeviceD2The D2 device power state. |
WdfPowerDeviceD3The D3 device power state. |
WdfPowerDeviceD3FinalRepresents the final time that the device enters the D3 device power state. Typically, this enumerator means that the system is being turned off, the device is about to be removed, or a resource rebalance is in progress. The device might have been already removed. |
WdfPowerDevicePrepareForHibernationThe device supports hibernation files, and the system is ready to hibernate by entering system state S4. The driver must not turn off the device. For more information, see Supporting Special Files. |
WdfPowerDeviceMaximumThe maximum enumerator value for this enumeration. |
Requirements
| Requirement | Value |
|---|---|
| Minimum KMDF version | 1.0 |
| Minimum UMDF version | 2.0 |
| Header | wdfdevice.h (include Wdf.h) |