Win32 API 日本語リファレンス
ホームSystem.Power › POWER_ACTION

POWER_ACTION

列挙型
基底型i4

メンバー 9

名前10進16進説明
PowerActionNone00x0システムの電源アクションはありません。
PowerActionReserved10x1予約済みです。使用しないでください。
PowerActionSleep20x2スリープします。
PowerActionHibernate30x3休止状態にします。
PowerActionShutdown40x4シャットダウンします。
PowerActionShutdownReset50x5シャットダウンして再起動します。
PowerActionShutdownOff60x6シャットダウンして電源を切ります。
PowerActionWarmEject70x7ウォーム イジェクトを行います。
PowerActionDisplayOff80x8

公式ドキュメント

システムの電源アクションの種類を指定するために使用する値を定義します。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum POWER_ACTION : int {
    PowerActionNone = 0,
    PowerActionReserved = 1,
    PowerActionSleep = 2,
    PowerActionHibernate = 3,
    PowerActionShutdown = 4,
    PowerActionShutdownReset = 5,
    PowerActionShutdownOff = 6,
    PowerActionWarmEject = 7,
    PowerActionDisplayOff = 8
} POWER_ACTION;
public enum POWER_ACTION : int
{
    PowerActionNone = 0,
    PowerActionReserved = 1,
    PowerActionSleep = 2,
    PowerActionHibernate = 3,
    PowerActionShutdown = 4,
    PowerActionShutdownReset = 5,
    PowerActionShutdownOff = 6,
    PowerActionWarmEject = 7,
    PowerActionDisplayOff = 8,
}
Public Enum POWER_ACTION As Integer
    PowerActionNone = 0
    PowerActionReserved = 1
    PowerActionSleep = 2
    PowerActionHibernate = 3
    PowerActionShutdown = 4
    PowerActionShutdownReset = 5
    PowerActionShutdownOff = 6
    PowerActionWarmEject = 7
    PowerActionDisplayOff = 8
End Enum
import enum

class POWER_ACTION(enum.IntEnum):
    PowerActionNone = 0
    PowerActionReserved = 1
    PowerActionSleep = 2
    PowerActionHibernate = 3
    PowerActionShutdown = 4
    PowerActionShutdownReset = 5
    PowerActionShutdownOff = 6
    PowerActionWarmEject = 7
    PowerActionDisplayOff = 8
// POWER_ACTION
pub const PowerActionNone: i32 = 0;
pub const PowerActionReserved: i32 = 1;
pub const PowerActionSleep: i32 = 2;
pub const PowerActionHibernate: i32 = 3;
pub const PowerActionShutdown: i32 = 4;
pub const PowerActionShutdownReset: i32 = 5;
pub const PowerActionShutdownOff: i32 = 6;
pub const PowerActionWarmEject: i32 = 7;
pub const PowerActionDisplayOff: i32 = 8;
// POWER_ACTION
const (
	PowerActionNone int32 = 0
	PowerActionReserved int32 = 1
	PowerActionSleep int32 = 2
	PowerActionHibernate int32 = 3
	PowerActionShutdown int32 = 4
	PowerActionShutdownReset int32 = 5
	PowerActionShutdownOff int32 = 6
	PowerActionWarmEject int32 = 7
	PowerActionDisplayOff int32 = 8
)
const
  PowerActionNone = 0;
  PowerActionReserved = 1;
  PowerActionSleep = 2;
  PowerActionHibernate = 3;
  PowerActionShutdown = 4;
  PowerActionShutdownReset = 5;
  PowerActionShutdownOff = 6;
  PowerActionWarmEject = 7;
  PowerActionDisplayOff = 8;
// POWER_ACTION
pub const PowerActionNone: i32 = 0;
pub const PowerActionReserved: i32 = 1;
pub const PowerActionSleep: i32 = 2;
pub const PowerActionHibernate: i32 = 3;
pub const PowerActionShutdown: i32 = 4;
pub const PowerActionShutdownReset: i32 = 5;
pub const PowerActionShutdownOff: i32 = 6;
pub const PowerActionWarmEject: i32 = 7;
pub const PowerActionDisplayOff: i32 = 8;
const
  PowerActionNone* = 0
  PowerActionReserved* = 1
  PowerActionSleep* = 2
  PowerActionHibernate* = 3
  PowerActionShutdown* = 4
  PowerActionShutdownReset* = 5
  PowerActionShutdownOff* = 6
  PowerActionWarmEject* = 7
  PowerActionDisplayOff* = 8
enum POWER_ACTION : int {
    PowerActionNone = 0,
    PowerActionReserved = 1,
    PowerActionSleep = 2,
    PowerActionHibernate = 3,
    PowerActionShutdown = 4,
    PowerActionShutdownReset = 5,
    PowerActionShutdownOff = 6,
    PowerActionWarmEject = 7,
    PowerActionDisplayOff = 8,
}
#define global PowerActionNone          0x0
#define global PowerActionReserved      0x1
#define global PowerActionSleep         0x2
#define global PowerActionHibernate     0x3
#define global PowerActionShutdown      0x4
#define global PowerActionShutdownReset 0x5
#define global PowerActionShutdownOff   0x6
#define global PowerActionWarmEject     0x7
#define global PowerActionDisplayOff    0x8