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

DEVICE_POWER_STATE

列挙型
基底型i4

メンバー 6

名前10進16進
PowerDeviceUnspecified00x0
PowerDeviceD010x1
PowerDeviceD120x2
PowerDeviceD230x3
PowerDeviceD340x4
PowerDeviceMaximum50x5

各言語での定義

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

typedef enum DEVICE_POWER_STATE : int {
    PowerDeviceUnspecified = 0,
    PowerDeviceD0 = 1,
    PowerDeviceD1 = 2,
    PowerDeviceD2 = 3,
    PowerDeviceD3 = 4,
    PowerDeviceMaximum = 5
} DEVICE_POWER_STATE;
public enum DEVICE_POWER_STATE : int
{
    PowerDeviceUnspecified = 0,
    PowerDeviceD0 = 1,
    PowerDeviceD1 = 2,
    PowerDeviceD2 = 3,
    PowerDeviceD3 = 4,
    PowerDeviceMaximum = 5,
}
Public Enum DEVICE_POWER_STATE As Integer
    PowerDeviceUnspecified = 0
    PowerDeviceD0 = 1
    PowerDeviceD1 = 2
    PowerDeviceD2 = 3
    PowerDeviceD3 = 4
    PowerDeviceMaximum = 5
End Enum
import enum

class DEVICE_POWER_STATE(enum.IntEnum):
    PowerDeviceUnspecified = 0
    PowerDeviceD0 = 1
    PowerDeviceD1 = 2
    PowerDeviceD2 = 3
    PowerDeviceD3 = 4
    PowerDeviceMaximum = 5
// DEVICE_POWER_STATE
pub const PowerDeviceUnspecified: i32 = 0;
pub const PowerDeviceD0: i32 = 1;
pub const PowerDeviceD1: i32 = 2;
pub const PowerDeviceD2: i32 = 3;
pub const PowerDeviceD3: i32 = 4;
pub const PowerDeviceMaximum: i32 = 5;
// DEVICE_POWER_STATE
const (
	PowerDeviceUnspecified int32 = 0
	PowerDeviceD0 int32 = 1
	PowerDeviceD1 int32 = 2
	PowerDeviceD2 int32 = 3
	PowerDeviceD3 int32 = 4
	PowerDeviceMaximum int32 = 5
)
const
  PowerDeviceUnspecified = 0;
  PowerDeviceD0 = 1;
  PowerDeviceD1 = 2;
  PowerDeviceD2 = 3;
  PowerDeviceD3 = 4;
  PowerDeviceMaximum = 5;
// DEVICE_POWER_STATE
pub const PowerDeviceUnspecified: i32 = 0;
pub const PowerDeviceD0: i32 = 1;
pub const PowerDeviceD1: i32 = 2;
pub const PowerDeviceD2: i32 = 3;
pub const PowerDeviceD3: i32 = 4;
pub const PowerDeviceMaximum: i32 = 5;
const
  PowerDeviceUnspecified* = 0
  PowerDeviceD0* = 1
  PowerDeviceD1* = 2
  PowerDeviceD2* = 3
  PowerDeviceD3* = 4
  PowerDeviceMaximum* = 5
enum DEVICE_POWER_STATE : int {
    PowerDeviceUnspecified = 0,
    PowerDeviceD0 = 1,
    PowerDeviceD1 = 2,
    PowerDeviceD2 = 3,
    PowerDeviceD3 = 4,
    PowerDeviceMaximum = 5,
}
#define global PowerDeviceUnspecified 0x0
#define global PowerDeviceD0          0x1
#define global PowerDeviceD1          0x2
#define global PowerDeviceD2          0x3
#define global PowerDeviceD3          0x4
#define global PowerDeviceMaximum     0x5