POWER_ACTION枚举 (ntpoapi.h)
POWER_ACTION 枚举标识计算机上可能发生的 系统电源作。
语法
typedef enum {
PowerActionNone = 0,
PowerActionReserved = ( PowerActionNone + 1 ),
PowerActionSleep = ( PowerActionReserved + 1 ),
PowerActionHibernate = ( PowerActionSleep + 1 ),
PowerActionShutdown = ( PowerActionHibernate + 1 ),
PowerActionShutdownReset = ( PowerActionShutdown + 1 ),
PowerActionShutdownOff = ( PowerActionShutdownReset + 1 ),
PowerActionWarmEject = ( PowerActionShutdownOff + 1 )
} POWER_ACTION, *PPOWER_ACTION;
常数
PowerActionNone 没有发生权力行动。 |
PowerActionReserved 保留供系统使用。 |
PowerActionSleep 计算机正在进入 系统睡眠状态(S1、S2 或 S3)。 |
PowerActionHibernate 计算机正在进入其 休眠状态(S4)状态。 |
PowerActionShutdown 计算机正在进入其 关闭状态(S5)。 在所有设备进入其 关闭状态(D3)后,计算机将保持打开状态,直到管理员按下电源按钮。 |
PowerActionShutdownReset 计算机正在进入其关闭状态(S5)。 在所有设备进入其关闭状态(D3)后,计算机会自动关闭,然后立即重启并返回到其工作状态(S0)。 |
PowerActionShutdownOff 计算机正在进入其关闭状态(S5)。 所有设备都进入关闭状态(D3)后,计算机会自动关闭。 |
PowerActionWarmEject 计算机正从与 ACPI 兼容的扩展坞设备中弹出。 通常,计算机的电源状态不会更改。 |
PowerActionDisplayOff |
言论
POWER_ACTION 枚举用作 IWDFDevice2::GetSystemPowerAction的返回值。
要求
要求 | 价值 |
---|---|
标头 | ntpoapi.h (包括 Wudfddi.h、Ntpoapi.h、Wdm.h) |