ホーム › System.Power › POWER_ACTION
POWER_ACTION
列挙型メンバー 9
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| PowerActionNone | 0 | 0x0 | システムの電源アクションはありません。 |
| PowerActionReserved | 1 | 0x1 | 予約済みです。使用しないでください。 |
| PowerActionSleep | 2 | 0x2 | スリープします。 |
| PowerActionHibernate | 3 | 0x3 | 休止状態にします。 |
| PowerActionShutdown | 4 | 0x4 | シャットダウンします。 |
| PowerActionShutdownReset | 5 | 0x5 | シャットダウンして再起動します。 |
| PowerActionShutdownOff | 6 | 0x6 | シャットダウンして電源を切ります。 |
| PowerActionWarmEject | 7 | 0x7 | ウォーム イジェクトを行います。 |
| PowerActionDisplayOff | 8 | 0x8 |
公式ドキュメント
システムの電源アクションの種類を指定するために使用する値を定義します。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
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 Enumimport 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* = 8enum 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