STOR_ADAPTER_CONTROL_POWER结构(storport.h)
STOR_ADAPTER_CONTROL_POWER 是 参数 参数指向的结构,当微型端口的 HwStorAdapterControl 例程被调用时,ControlTypeScsiAdapterPower。
语法
typedef struct _STOR_ADAPTER_CONTROL_POWER {
STOR_POWER_CONTROL_HEADER Header;
STOR_POWER_ACTION PowerAction;
STOR_DEVICE_POWER_STATE PowerState;
} STOR_ADAPTER_CONTROL_POWER, *PSTOR_ADAPTER_CONTROL_POWER;
成员
Header
PowerAction
指示电源作的 STOR_POWER_ACTION 值。 对于运行时电源转换,请将 PowerAction 设置为 StorPowerActionNone。
PowerState
指示当前电源状态的 STOR_DEVICE_POWER_STATE 值。 这是 StorPowerDeviceD0 或 StorPowerDeviceD3 分别用于开机状态或关机状态。
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows 8 |
标头 | storport.h |