Win32 API 日本語リファレンス
ホームNetworkManagement.Dhcp › DHCP_POL_ATTR_TYPE

DHCP_POL_ATTR_TYPE

列挙型
基底型i4

メンバー 5

名前10進16進説明
DhcpAttrHWAddr00x0この条件は、RFC2131 で定義されている DHCP メッセージ ヘッダーの chaddr フィールドに含まれるハードウェア アドレス (MAC アドレス) に基づきます。
DhcpAttrOption10x1この条件は、DHCP オプションに基づきます。
DhcpAttrSubOption20x2この条件は、DHCP サブオプションに基づきます。
DhcpAttrFqdn30x3
DhcpAttrFqdnSingleLabel40x4

公式ドキュメント

DHCP_POL_ATTR_TYPE 列挙型は、DHCP サーバー ポリシー内の条件に対する属性の種類を定義します。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

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

typedef enum DHCP_POL_ATTR_TYPE : int {
    DhcpAttrHWAddr = 0,
    DhcpAttrOption = 1,
    DhcpAttrSubOption = 2,
    DhcpAttrFqdn = 3,
    DhcpAttrFqdnSingleLabel = 4
} DHCP_POL_ATTR_TYPE;
public enum DHCP_POL_ATTR_TYPE : int
{
    DhcpAttrHWAddr = 0,
    DhcpAttrOption = 1,
    DhcpAttrSubOption = 2,
    DhcpAttrFqdn = 3,
    DhcpAttrFqdnSingleLabel = 4,
}
Public Enum DHCP_POL_ATTR_TYPE As Integer
    DhcpAttrHWAddr = 0
    DhcpAttrOption = 1
    DhcpAttrSubOption = 2
    DhcpAttrFqdn = 3
    DhcpAttrFqdnSingleLabel = 4
End Enum
import enum

class DHCP_POL_ATTR_TYPE(enum.IntEnum):
    DhcpAttrHWAddr = 0
    DhcpAttrOption = 1
    DhcpAttrSubOption = 2
    DhcpAttrFqdn = 3
    DhcpAttrFqdnSingleLabel = 4
// DHCP_POL_ATTR_TYPE
pub const DhcpAttrHWAddr: i32 = 0;
pub const DhcpAttrOption: i32 = 1;
pub const DhcpAttrSubOption: i32 = 2;
pub const DhcpAttrFqdn: i32 = 3;
pub const DhcpAttrFqdnSingleLabel: i32 = 4;
// DHCP_POL_ATTR_TYPE
const (
	DhcpAttrHWAddr int32 = 0
	DhcpAttrOption int32 = 1
	DhcpAttrSubOption int32 = 2
	DhcpAttrFqdn int32 = 3
	DhcpAttrFqdnSingleLabel int32 = 4
)
const
  DhcpAttrHWAddr = 0;
  DhcpAttrOption = 1;
  DhcpAttrSubOption = 2;
  DhcpAttrFqdn = 3;
  DhcpAttrFqdnSingleLabel = 4;
// DHCP_POL_ATTR_TYPE
pub const DhcpAttrHWAddr: i32 = 0;
pub const DhcpAttrOption: i32 = 1;
pub const DhcpAttrSubOption: i32 = 2;
pub const DhcpAttrFqdn: i32 = 3;
pub const DhcpAttrFqdnSingleLabel: i32 = 4;
const
  DhcpAttrHWAddr* = 0
  DhcpAttrOption* = 1
  DhcpAttrSubOption* = 2
  DhcpAttrFqdn* = 3
  DhcpAttrFqdnSingleLabel* = 4
enum DHCP_POL_ATTR_TYPE : int {
    DhcpAttrHWAddr = 0,
    DhcpAttrOption = 1,
    DhcpAttrSubOption = 2,
    DhcpAttrFqdn = 3,
    DhcpAttrFqdnSingleLabel = 4,
}
#define global DhcpAttrHWAddr          0x0
#define global DhcpAttrOption          0x1
#define global DhcpAttrSubOption       0x2
#define global DhcpAttrFqdn            0x3
#define global DhcpAttrFqdnSingleLabel 0x4