WDMUSB_POWER_STATE enumeration (usbuser.h)
The WDMUSB_POWER_STATE enumeration indicates the power state of a host controller or root hub.
Syntax
typedef enum _WDMUSB_POWER_STATE {
WdmUsbPowerNotMapped = 0,
WdmUsbPowerSystemUnspecified = 100,
WdmUsbPowerSystemWorking,
WdmUsbPowerSystemSleeping1,
WdmUsbPowerSystemSleeping2,
WdmUsbPowerSystemSleeping3,
WdmUsbPowerSystemHibernate,
WdmUsbPowerSystemShutdown,
WdmUsbPowerDeviceUnspecified = 200,
WdmUsbPowerDeviceD0,
WdmUsbPowerDeviceD1,
WdmUsbPowerDeviceD2,
WdmUsbPowerDeviceD3
} WDMUSB_POWER_STATE;
Constants
WdmUsbPowerNotMapped Value: 0 Power state information is not mapped. |
WdmUsbPowerSystemUnspecified Value: 100 Power state information is not available. |
WdmUsbPowerSystemWorking The system is in the working state. |
WdmUsbPowerSystemSleeping1 The system is in the S1 power state. |
WdmUsbPowerSystemSleeping2 The system is in the S2 power state. |
WdmUsbPowerSystemSleeping3 The system is in the S3 power state. |
WdmUsbPowerSystemHibernate The system is hibernating. |
WdmUsbPowerSystemShutdown The system is shutdown. |
WdmUsbPowerDeviceUnspecified Value: 200 A device is not specified. |
WdmUsbPowerDeviceD0 The host controller is in the D0 power state. |
WdmUsbPowerDeviceD1 The host controller is in the D1 power state. |
WdmUsbPowerDeviceD2 The host controller is in the D2 power state. |
WdmUsbPowerDeviceD3 The host controller is in the D3 power state. |
Remarks
The USB stack uses the WDMUSB_POWER_STATE enumeration to report the power state of the host controller after receiving a USBUSER_GET_POWER_STATE_MAP request. For more information about this request, see IOCTL_USB_USER_REQUEST.
Requirements
Requirement | Value |
---|---|
Header | usbuser.h (include Usbuser.h) |