STOR_POWER_ACTION enumeration (storport.h)

The STOR_POWER_ACTION enumeration identifies the system power actions that can occur on a computer.

Syntax

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

Constants

 
StorPowerActionNone
No power action is taking place.
StorPowerActionReserved
Reserved for system use.
StorPowerActionSleep
The computer is entering a system sleeping (S1, S2, or S3) state.
StorPowerActionHibernate
The computer is entering its hibernation (S4) state.
StorPowerActionShutdown
The computer is entering its shutdown (S5) state. After all devices have entered their off (D3) state, the computer remains powered on until an administrator presses the power button.
StorPowerActionShutdownReset
The computer is entering its shutdown (S5) state. After all devices have entered their off (D3) state, the computer automatically powers off and then immediately restarts and returns to its working (S0) state.
StorPowerActionShutdownOff
The computer is entering its shutdown (S5) state. After all devices have entered their off (D3) state, the computer automatically powers off.
StorPowerActionWarmEject
The computer is being ejected from an ACPI-compatible dock device. Typically, the computer's power state does not change.

Remarks

For a unit, Storport sets STOR_POWER_ACTION in the STOR_UNIT_CONTROL_POWER structure.

For an adapter, Storport sets STOR_POWER_ACTION in the STOR_ADAPTER_CONTROL_POWER structure.

Requirements

Requirement Value
Minimum supported client Windows 8
Header storport.h

See also

HwStorAdapterControl

HwStorUnitControl