2.2.1.2.24 DHCP_OPTION_DATA

The DHCP_OPTION_DATA structure defines an array of DHCP_OPTION_DATA_ELEMENT (section 2.2.1.2.23) structures. This structure is a data container for one or more data elements associated with a DHCP option. This structure is used in the DHCP_OPTION_VALUE (section 2.2.1.2.42) structure.

 typedef struct _DHCP_OPTION_DATA {
   DWORD NumElements;
   [size_is(NumElements)] LPDHCP_OPTION_DATA_ELEMENT Elements;
 } DHCP_OPTION_DATA,
  *LPDHCP_OPTION_DATA;

NumElements: This is of type DWORD, specifying the number of data elements in the specific DHCP option, which is also the number of option data elements listed in the Elements array member.

Elements: This is a pointer of type DHCP_OPTION_DATA_ELEMENT structure that points to the array of length NumElements containing the data elements associated with a specific option.