2.2.1.2.117 DHCP_PROPERTY

The DHCP_PROPERTY structure contains the type of the property, the property identifier, and the property data value. The DHCP_PROPERTY identifies a DHCP property and is used by the DHCP_CLIENT_INFO_EX (section 2.2.1.2.119) and DHCP_POLICY_EX (section 2.2.1.2.121) structures, which allow a list of properties to be associated with them.

 typedef struct _DHCP_PROPERTY {
      DHCP_PROPERTY_ID ID;
      DHCP_PROPERTY_TYPE Type;
      [switch_is(Type), switch_type(DHCP_PROPERTY_TYPE)]
      union _DHCP_PROPERTY_VALUE_UNION {
          [case(DhcpPropTypeByte)]   BYTE             ByteValue;
          [case(DhcpPropTypeWord)]   WORD             WordValue;
          [case(DhcpPropTypeDword)]  DWORD            DWordValue;
          [case(DhcpPropTypeString)] LPWSTR           StringValue;
          [case(DhcpPropTypeBinary)] DHCP_BINARY_DATA BinaryValue;
      } Value;
 } DHCP_PROPERTY, *PDHCP_PROPERTY, *LPDHCP_PROPERTY;

ID: An enumeration of type DHCP_PROPERTY_ID (section 2.2.1.1.27) that indicates the property identifier for the data value contained in the Value field.

Type: An enumeration of type DHCP_PROPERTY_TYPE (section 2.2.1.1.26) that indicates the property type for the data value contained in the Value field.

Value: Specifies the property data using one of the following values based on the value of the Type field.

ByteValue: Specifies the data as a BYTE value. This field is present if the Type field is set to DhcpPropertyTypeByte.

WordValue: Specifies the data as a WORD value. This field is present if the Type field is set to DhcpPropertyTypeWord.

DWordValue: Specifies the data as a DWORD value. This field is present if the Type field is set to DhcpPropertyTypeDWord.

StringValue: Specifies the data as a LPWSTR pointer to a Unicode string value. This field is present if the Type field is set to DhcpPropertyTypeString.

BinaryValue: Specifies the data as a DHCP_BINARY_DATA (section 2.2.1.2.9) structure. This field is present if the Type field is set to DhcpPropertyTypeBinary.