STOR_POWER_ACTION枚举 (storport.h)

STOR_POWER_ACTION 枚举标识计算机上可能发生的系统电源作。

语法

typedef enum {
  StorPowerActionNone,
  StorPowerActionReserved,
  StorPowerActionSleep,
  StorPowerActionHibernate,
  StorPowerActionShutdown,
  StorPowerActionShutdownReset,
  StorPowerActionShutdownOff,
  StorPowerActionWarmEject
} STOR_POWER_ACTION, *PSTOR_POWER_ACTION;

常数

 
StorPowerActionNone
没有发生权力行动。
StorPowerActionReserved
保留供系统使用。
StorPowerActionSleep
计算机正在进入 系统睡眠状态(S1、S2 或 S3)
StorPowerActionHibernate
计算机正在进入其 休眠状态(S4)状态
StorPowerActionShutdown
计算机正在进入其关闭状态(S5)。 在所有设备都进入关闭状态(D3)后,计算机将保持打开状态,直到管理员按下电源按钮。
StorPowerActionShutdownReset
计算机正在进入其关闭状态(S5)。 在所有设备进入其关闭状态(D3)后,计算机会自动关闭,然后立即重启并返回到其工作状态(S0)。
StorPowerActionShutdownOff
计算机正在进入其关闭状态(S5)。 所有设备都进入关闭状态(D3)后,计算机会自动关闭。
StorPowerActionWarmEject
计算机正从与 ACPI 兼容的扩展坞设备中弹出。 通常,计算机的电源状态不会更改。

言论

对于单元,Storport 在 STOR_UNIT_CONTROL_POWER 结构中设置 STOR_POWER_ACTION

对于适配器,Storport 在 STOR_ADAPTER_CONTROL_POWER 结构中设置 STOR_POWER_ACTION

要求

要求 价值
最低支持的客户端 Windows 8
标头 storport.h

另请参阅

HwStorAdapterControl

HwStorUnitControl