ホーム › System.Power › POWER_PLATFORM_ROLE
POWER_PLATFORM_ROLE
列挙型メンバー 10
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| PlatformRoleUnspecified | 0 | 0x0 | OEM は特定のロールを指定しませんでした。 |
| PlatformRoleDesktop | 1 | 0x1 | OEM はデスクトップのロールを指定しました。 |
| PlatformRoleMobile | 2 | 0x2 | OEM はモバイルのロール (ノート PC など) を指定しました。 |
| PlatformRoleWorkstation | 3 | 0x3 | OEM はワークステーションのロールを指定しました。 |
| PlatformRoleEnterpriseServer | 4 | 0x4 | OEM はエンタープライズ サーバーのロールを指定しました。 |
| PlatformRoleSOHOServer | 5 | 0x5 | OEM は小規模オフィス/ホーム オフィス (SOHO) サーバーのロールを指定しました。 |
| PlatformRoleAppliancePC | 6 | 0x6 | OEM はアプライアンス PC のロールを指定しました。 |
| PlatformRolePerformanceServer | 7 | 0x7 | OEM はパフォーマンス サーバーのロールを指定しました。 |
| PlatformRoleSlate | 8 | 0x8 | OEM はタブレット フォーム ファクターのロールを指定しました。 Windows 7、Windows Server 2008 R2、Windows Vista または Windows Server 2008: この列挙型のバージョン 1 では、この値は PlatformRoleMaximum と同等です。この値は、Windows 8 および Windows Server 2012 以降のこの列挙型のバージョン 2 でサポートされます。 |
| PlatformRoleMaximum | 9 | 0x9 | この値以上の値は、範囲外の値であることを示します。 |
公式ドキュメント
OEM が推奨する電源管理プロファイルを示します。これらの値は、Fixed ACPI Description Table (FADT) の Preferred_PM_Profile フィールドから読み取られます。これらの値は、 PowerDeterminePlatformRole 関数または PowerDeterminePlatformRoleEx 関数によって返されます。
出典・ライセンス: 上記「公式ドキュメント」の内容は 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_PLATFORM_ROLE : int {
PlatformRoleUnspecified = 0,
PlatformRoleDesktop = 1,
PlatformRoleMobile = 2,
PlatformRoleWorkstation = 3,
PlatformRoleEnterpriseServer = 4,
PlatformRoleSOHOServer = 5,
PlatformRoleAppliancePC = 6,
PlatformRolePerformanceServer = 7,
PlatformRoleSlate = 8,
PlatformRoleMaximum = 9
} POWER_PLATFORM_ROLE;public enum POWER_PLATFORM_ROLE : int
{
PlatformRoleUnspecified = 0,
PlatformRoleDesktop = 1,
PlatformRoleMobile = 2,
PlatformRoleWorkstation = 3,
PlatformRoleEnterpriseServer = 4,
PlatformRoleSOHOServer = 5,
PlatformRoleAppliancePC = 6,
PlatformRolePerformanceServer = 7,
PlatformRoleSlate = 8,
PlatformRoleMaximum = 9,
}Public Enum POWER_PLATFORM_ROLE As Integer
PlatformRoleUnspecified = 0
PlatformRoleDesktop = 1
PlatformRoleMobile = 2
PlatformRoleWorkstation = 3
PlatformRoleEnterpriseServer = 4
PlatformRoleSOHOServer = 5
PlatformRoleAppliancePC = 6
PlatformRolePerformanceServer = 7
PlatformRoleSlate = 8
PlatformRoleMaximum = 9
End Enumimport enum
class POWER_PLATFORM_ROLE(enum.IntEnum):
PlatformRoleUnspecified = 0
PlatformRoleDesktop = 1
PlatformRoleMobile = 2
PlatformRoleWorkstation = 3
PlatformRoleEnterpriseServer = 4
PlatformRoleSOHOServer = 5
PlatformRoleAppliancePC = 6
PlatformRolePerformanceServer = 7
PlatformRoleSlate = 8
PlatformRoleMaximum = 9// POWER_PLATFORM_ROLE
pub const PlatformRoleUnspecified: i32 = 0;
pub const PlatformRoleDesktop: i32 = 1;
pub const PlatformRoleMobile: i32 = 2;
pub const PlatformRoleWorkstation: i32 = 3;
pub const PlatformRoleEnterpriseServer: i32 = 4;
pub const PlatformRoleSOHOServer: i32 = 5;
pub const PlatformRoleAppliancePC: i32 = 6;
pub const PlatformRolePerformanceServer: i32 = 7;
pub const PlatformRoleSlate: i32 = 8;
pub const PlatformRoleMaximum: i32 = 9;// POWER_PLATFORM_ROLE
const (
PlatformRoleUnspecified int32 = 0
PlatformRoleDesktop int32 = 1
PlatformRoleMobile int32 = 2
PlatformRoleWorkstation int32 = 3
PlatformRoleEnterpriseServer int32 = 4
PlatformRoleSOHOServer int32 = 5
PlatformRoleAppliancePC int32 = 6
PlatformRolePerformanceServer int32 = 7
PlatformRoleSlate int32 = 8
PlatformRoleMaximum int32 = 9
)const
PlatformRoleUnspecified = 0;
PlatformRoleDesktop = 1;
PlatformRoleMobile = 2;
PlatformRoleWorkstation = 3;
PlatformRoleEnterpriseServer = 4;
PlatformRoleSOHOServer = 5;
PlatformRoleAppliancePC = 6;
PlatformRolePerformanceServer = 7;
PlatformRoleSlate = 8;
PlatformRoleMaximum = 9;// POWER_PLATFORM_ROLE
pub const PlatformRoleUnspecified: i32 = 0;
pub const PlatformRoleDesktop: i32 = 1;
pub const PlatformRoleMobile: i32 = 2;
pub const PlatformRoleWorkstation: i32 = 3;
pub const PlatformRoleEnterpriseServer: i32 = 4;
pub const PlatformRoleSOHOServer: i32 = 5;
pub const PlatformRoleAppliancePC: i32 = 6;
pub const PlatformRolePerformanceServer: i32 = 7;
pub const PlatformRoleSlate: i32 = 8;
pub const PlatformRoleMaximum: i32 = 9;const
PlatformRoleUnspecified* = 0
PlatformRoleDesktop* = 1
PlatformRoleMobile* = 2
PlatformRoleWorkstation* = 3
PlatformRoleEnterpriseServer* = 4
PlatformRoleSOHOServer* = 5
PlatformRoleAppliancePC* = 6
PlatformRolePerformanceServer* = 7
PlatformRoleSlate* = 8
PlatformRoleMaximum* = 9enum POWER_PLATFORM_ROLE : int {
PlatformRoleUnspecified = 0,
PlatformRoleDesktop = 1,
PlatformRoleMobile = 2,
PlatformRoleWorkstation = 3,
PlatformRoleEnterpriseServer = 4,
PlatformRoleSOHOServer = 5,
PlatformRoleAppliancePC = 6,
PlatformRolePerformanceServer = 7,
PlatformRoleSlate = 8,
PlatformRoleMaximum = 9,
}#define global PlatformRoleUnspecified 0x0
#define global PlatformRoleDesktop 0x1
#define global PlatformRoleMobile 0x2
#define global PlatformRoleWorkstation 0x3
#define global PlatformRoleEnterpriseServer 0x4
#define global PlatformRoleSOHOServer 0x5
#define global PlatformRoleAppliancePC 0x6
#define global PlatformRolePerformanceServer 0x7
#define global PlatformRoleSlate 0x8
#define global PlatformRoleMaximum 0x9