// ntpoapi.h
typedef enum _DEVICE_POWER_STATE {
PowerDeviceUnspecified,
PowerDeviceD0,
PowerDeviceD1,
PowerDeviceD2,
PowerDeviceD3,
PowerDeviceMaximum
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
View the official Windows Driver Kit DDI reference// wdm.h
typedef enum _DEVICE_POWER_STATE {
PowerDeviceUnspecified,
PowerDeviceD0,
PowerDeviceD1,
PowerDeviceD2,
PowerDeviceD3,
PowerDeviceMaximum
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
View the official Windows Driver Kit DDI reference// wudfddi.h
typedef enum _DEVICE_POWER_STATE {
PowerDeviceUnspecified,
PowerDeviceD0,
PowerDeviceD1,
PowerDeviceD2,
PowerDeviceD3,
PowerDeviceMaximum
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
View the official Windows Driver Kit DDI referenceNo description available.
The DEVICE_POWER_STATE enumeration type indicates a device power state.
PowerDeviceUnspecifiedIndicates an unspecified device power state.
PowerDeviceD0Indicates a maximum device power state, which corresponds to device working state D0.
PowerDeviceD1Indicates a device sleeping state less than PowerDeviceD0 and greater than PowerDeviceD2, which corresponds to device power state D1.
PowerDeviceD2Indicates a device sleeping state less than PowerDeviceD1 and greater than PowerDeviceD3, which corresponds to device power state D2.
PowerDeviceD3Indicates the lowest-powered device sleeping state, which corresponds to device power state D3.
PowerDeviceMaximumThe number of device power state values for this enumeration type that represent actual power states. The value of the other device power states is less than this value.
A power state indicates the level of power consumption—and thus the extent of computing activity—by the system or by a single device. The power manager sets the power state of the system as a whole, where the system power state is indicated by one of the values of the SYSTEM_POWER_STATE enumeration type. Device drivers set the power state of their individual devices, where the device power state is indicated by one of the values of the DEVICE_POWER_STATE enumeration type.
For more information about system power states, see Handling System Power State Requests. For more information about device power states, see Managing Power for Individual Devices. For more information about power management in general, see Introduction to Power Management.
The DEVICE_POWER_STATE enumeration type indicates a device power state.
PowerDeviceUnspecifiedIndicates an unspecified device power state.
PowerDeviceD0Indicates a maximum device power state, which corresponds to device working state D0.
PowerDeviceD1Indicates a device sleeping state less than PowerDeviceD0 and greater than PowerDeviceD2, which corresponds to device power state D1.
PowerDeviceD2Indicates a device sleeping state less than PowerDeviceD1 and greater than PowerDeviceD3, which corresponds to device power state D2.
PowerDeviceD3Indicates the lowest-powered device sleeping state, which corresponds to device power state D3.
PowerDeviceMaximumThe number of device power state values for this enumeration type that represent actual power states. The value of the other device power states is less than this value.
A power state indicates the level of power consumption—and thus the extent of computing activity—by the system or by a single device. The power manager sets the power state of the system as a whole, where the system power state is indicated by one of the values of the SYSTEM_POWER_STATE enumeration type. Device drivers set the power state of their individual devices, where the device power state is indicated by one of the values of the DEVICE_POWER_STATE enumeration type.
For more information about system power states, see Handling System Power State Requests. For more information about device power states, see Managing Power for Individual Devices. For more information about power management in general, see Introduction to Power Management.
[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.
PowerDeviceUnspecifiedThe device power state is unspecified.
PowerDeviceD0The device's working (D0) state. This is the device's highest power state.
PowerDeviceD1The device's D1 sleeping state.
PowerDeviceD2The device's D2 sleeping state.
PowerDeviceD3The device's D3 sleeping state.
PowerDeviceMaximumFor system use only.
The DEVICE_POWER_STATE enumeration is used as input to IWDFDevice2::AssignS0IdleSettings and IWDFDevice2::AssignSxWakeSettings.
IWDFDevice2::AssignS0IdleSettings
IWDFDevice2::AssignSxWakeSettings