ホーム › System.Power › SYSTEM_POWER_STATE
SYSTEM_POWER_STATE
列挙型メンバー 8
| 名前 | 10進 | 16進 |
|---|---|---|
| PowerSystemUnspecified | 0 | 0x0 |
| PowerSystemWorking | 1 | 0x1 |
| PowerSystemSleeping1 | 2 | 0x2 |
| PowerSystemSleeping2 | 3 | 0x3 |
| PowerSystemSleeping3 | 4 | 0x4 |
| PowerSystemHibernate | 5 | 0x5 |
| PowerSystemShutdown | 6 | 0x6 |
| PowerSystemMaximum | 7 | 0x7 |
各言語での定義
列挙メンバーの定義。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 Enumimport 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* = 7enum 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