2.2.1.1.10 DHCP_OPTION_DATA_TYPE
The DHCP_OPTION_DATA_TYPE enumeration defines the format types for DHCP option values and is used in the DHCP_OPTION_DATA_ELEMENT (section 2.2.1.2.23) structure. The DHCPM RPC methods can create the option definition on the DHCP server, which can contain option value in various formats.
-
typedef enum _DHCP_OPTION_DATA_TYPE { DhcpByteOption, DhcpWordOption, DhcpDWordOption, DhcpDWordDWordOption, DhcpIpAddressOption, DhcpStringDataOption, DhcpBinaryDataOption, DhcpEncapsulatedDataOption, DhcpIpv6AddressOption } DHCP_OPTION_DATA_TYPE, *LPDHCP_OPTION_DATA_TYPE;
DhcpByteOption: The option value is of type BYTE.
DhcpWordOption: The option value is of type WORD.
DhcpDWordOption: The option value is of type DWORD [MS-DTYP] section 2.2.9.
DhcpDWordDWordOption: The option value is of type DWORD_DWORD (section 2.2.1.2.22).
DhcpIpAddressOption: The option value is of type DHCP_IP_ADDRESS (section 2.2.1.2.1).
DhcpStringDataOption: The option value is a pointer, of type LPWSTR, to a null-terminated UNICODE string.
DhcpBinaryDataOption: The option value is of type DHCP_BINARY_DATA (section 2.2.1.2.9).
DhcpEncapsulatedDataOption: The option value is encapsulated and of type DHCP_BINARY_DATA.
DhcpIpv6AddressOption: The option value is an IPv6 address represented as a pointer, of type LPWSTR, to a null-terminated Unicode string.