DHCP_ATTRIB structure (dhcpsapi.h)

The DHCP_ATTRIB structure defines an attribute set on the DHCP server.

Syntax

typedef struct _DHCP_ATTRIB {
  DHCP_ATTRIB_ID DhcpAttribId;
  ULONG          DhcpAttribType;
  union {
    BOOL  DhcpAttribBool;
    ULONG DhcpAttribUlong;
  };
  union {
    BOOL  DhcpAttribBool;
    ULONG DhcpAttribUlong;
  };
} DHCP_ATTRIB, *PDHCP_ATTRIB, *LPDHCP_ATTRIB;

Members

DhcpAttribId

DHCP_ATTRIB_ID structure that uniquely identifies the DHCP server attribute.

DhcpAttribType

Specifies exactly one of the following attribute types.

Value Meaning
DHCP_ATTRIB_BOOL_IS_ROGUE
0x01
The DHCP server is rogue.
DHCP_ATTRIB_BOOL_IS_DYNBOOTP
0x02
The DHCP server supports BOOTP for dynamic address service.
DHCP_ATTRIB_BOOL_IS_PART_OF_DSDC
0x03
The DHCP server is part of the directory service domain controller.
DHCP_ATTRIB_BOOL_IS_BINDING_AWARE
0x04
The DHCP server is binding aware.
DHCP_ATTRIB_BOOL_IS_ADMIN
0x05
The DHCP server is the admin-level DHCP server.
DHCP_ATTRIB_ULONG_RESTORE_STATUS
0x06
The DHCP server can restore status with the provided attribute value.

DhcpAttribBool

DhcpAttribUlong

Remarks

A DHCP server attribute is a value that can be queried to determine supported and available features.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008, Windows Server 2008 R2 [desktop apps only]
Header dhcpsapi.h