STOR_POWER_ACTION列舉 (storport.h)

STOR_POWER_ACTION列舉會識別計算機上可能發生的系統電源動作。

Syntax

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