共用方式為


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)。 在所有裝置都進入關閉狀態后,計算機會保持開啟電源,直到系統管理員按下電源按鈕為止。
StorPowerActionShutdownReset
計算機正在進入其關機狀態(S5)。 所有裝置都進入其關閉狀態后,計算機會自動關閉,然後立即重新啟動並返回其工作 (S0) 狀態。
StorPowerActionShutdownOff
計算機正在進入其關機狀態(S5)。 所有裝置都進入關閉狀態后,計算機會自動關閉。
StorPowerActionWarmEject
計算機正從 ACPI 相容的擴充座裝置中退出。 一般而言,計算機的電源狀態不會變更。

言論

針對單位,Storport 會在 STOR_UNIT_CONTROL_POWER 結構中設定 STOR_POWER_ACTION

針對配接器,Storport 會在 STOR_ADAPTER_CONTROL_POWER 結構中設定 STOR_POWER_ACTION

要求

要求 價值
最低支援的用戶端 Windows 8
標頭 storport.h

另請參閱

HwStorAdapterControl

HwStorUnitControl