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

SYSTEM_POWER_STATE

列挙型
基底型i4

メンバー 8

名前10進16進
PowerSystemUnspecified00x0
PowerSystemWorking10x1
PowerSystemSleeping120x2
PowerSystemSleeping230x3
PowerSystemSleeping340x4
PowerSystemHibernate50x5
PowerSystemShutdown60x6
PowerSystemMaximum70x7

各言語での定義

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

typedef enum SYSTEM_POWER_STATE : int {
    PowerSystemUnspecified = 0,
    PowerSystemWorking = 1,
    PowerSystemSleeping1 = 2,
    PowerSystemSleeping2 = 3,
    PowerSystemSleeping3 = 4,
    PowerSystemHibernate = 5,
    PowerSystemShutdown = 6,
    PowerSystemMaximum = 7
} SYSTEM_POWER_STATE;
public enum SYSTEM_POWER_STATE : int
{
    PowerSystemUnspecified = 0,
    PowerSystemWorking = 1,
    PowerSystemSleeping1 = 2,
    PowerSystemSleeping2 = 3,
    PowerSystemSleeping3 = 4,
    PowerSystemHibernate = 5,
    PowerSystemShutdown = 6,
    PowerSystemMaximum = 7,
}
Public Enum SYSTEM_POWER_STATE As Integer
    PowerSystemUnspecified = 0
    PowerSystemWorking = 1
    PowerSystemSleeping1 = 2
    PowerSystemSleeping2 = 3
    PowerSystemSleeping3 = 4
    PowerSystemHibernate = 5
    PowerSystemShutdown = 6
    PowerSystemMaximum = 7
End Enum
import enum

class SYSTEM_POWER_STATE(enum.IntEnum):
    PowerSystemUnspecified = 0
    PowerSystemWorking = 1
    PowerSystemSleeping1 = 2
    PowerSystemSleeping2 = 3
    PowerSystemSleeping3 = 4
    PowerSystemHibernate = 5
    PowerSystemShutdown = 6
    PowerSystemMaximum = 7
// SYSTEM_POWER_STATE
pub const PowerSystemUnspecified: i32 = 0;
pub const PowerSystemWorking: i32 = 1;
pub const PowerSystemSleeping1: i32 = 2;
pub const PowerSystemSleeping2: i32 = 3;
pub const PowerSystemSleeping3: i32 = 4;
pub const PowerSystemHibernate: i32 = 5;
pub const PowerSystemShutdown: i32 = 6;
pub const PowerSystemMaximum: i32 = 7;
// SYSTEM_POWER_STATE
const (
	PowerSystemUnspecified int32 = 0
	PowerSystemWorking int32 = 1
	PowerSystemSleeping1 int32 = 2
	PowerSystemSleeping2 int32 = 3
	PowerSystemSleeping3 int32 = 4
	PowerSystemHibernate int32 = 5
	PowerSystemShutdown int32 = 6
	PowerSystemMaximum int32 = 7
)
const
  PowerSystemUnspecified = 0;
  PowerSystemWorking = 1;
  PowerSystemSleeping1 = 2;
  PowerSystemSleeping2 = 3;
  PowerSystemSleeping3 = 4;
  PowerSystemHibernate = 5;
  PowerSystemShutdown = 6;
  PowerSystemMaximum = 7;
// SYSTEM_POWER_STATE
pub const PowerSystemUnspecified: i32 = 0;
pub const PowerSystemWorking: i32 = 1;
pub const PowerSystemSleeping1: i32 = 2;
pub const PowerSystemSleeping2: i32 = 3;
pub const PowerSystemSleeping3: i32 = 4;
pub const PowerSystemHibernate: i32 = 5;
pub const PowerSystemShutdown: i32 = 6;
pub const PowerSystemMaximum: i32 = 7;
const
  PowerSystemUnspecified* = 0
  PowerSystemWorking* = 1
  PowerSystemSleeping1* = 2
  PowerSystemSleeping2* = 3
  PowerSystemSleeping3* = 4
  PowerSystemHibernate* = 5
  PowerSystemShutdown* = 6
  PowerSystemMaximum* = 7
enum SYSTEM_POWER_STATE : int {
    PowerSystemUnspecified = 0,
    PowerSystemWorking = 1,
    PowerSystemSleeping1 = 2,
    PowerSystemSleeping2 = 3,
    PowerSystemSleeping3 = 4,
    PowerSystemHibernate = 5,
    PowerSystemShutdown = 6,
    PowerSystemMaximum = 7,
}
#define global PowerSystemUnspecified 0x0
#define global PowerSystemWorking     0x1
#define global PowerSystemSleeping1   0x2
#define global PowerSystemSleeping2   0x3
#define global PowerSystemSleeping3   0x4
#define global PowerSystemHibernate   0x5
#define global PowerSystemShutdown    0x6
#define global PowerSystemMaximum     0x7