DEVICE_POWER_STATE enumeration (wudfddi.h)
[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]
The DEVICE_POWER_STATE enumeration identifies the device power states that a device can enter.
Syntax
typedef enum _DEVICE_POWER_STATE {
PowerDeviceUnspecified,
PowerDeviceD0,
PowerDeviceD1,
PowerDeviceD2,
PowerDeviceD3,
PowerDeviceMaximum
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
Constants
PowerDeviceUnspecified The device power state is unspecified. |
PowerDeviceD0 The device's working (D0) state. This is the device's highest power state. |
PowerDeviceD1 The device's D1 sleeping state. |
PowerDeviceD2 The device's D2 sleeping state. |
PowerDeviceD3 The device's D3 sleeping state. |
PowerDeviceMaximum For system use only. |
Remarks
The DEVICE_POWER_STATE enumeration is used as input to IWDFDevice2::AssignS0IdleSettings and IWDFDevice2::AssignSxWakeSettings.
Requirements
Requirement | Value |
---|---|
Minimum UMDF version | 1.9 |
Header | wudfddi.h (include Wudfddi.h) |