<div class="content"><p> </p><p>The <b>DHCP_ATTRIB</b> structure contains the attribute and
its values for the DHCPv4 server. This structure is used in the <span><a href="3b8b3910-8d92-4d96-8ca7-5d73716d74dd" data-linktype="relative-path">R_DhcpServerQueryAttribute (section 3.2.4.35)</a></span>
method.</p><dl>
<dd>
<div><pre> typedef struct _DHCP_ATTRIB {
   DHCP_ATTRIB_ID DhcpAttribId;
   ULONG DhcpAttribType;
   [switch_is(DhcpAttribType), switch_type(ULONG)] 
     union {
     [case(DHCP_ATTRIB_TYPE_BOOL)] 
       BOOL DhcpAttribBool;
     [case(DHCP_ATTRIB_TYPE_ULONG)] 
       ULONG DhcpAttribUlong;
   };
 } DHCP_ATTRIB,
  *PDHCP_ATTRIB,
  *LPDHCP_ATTRIB;
</pre></div>
</dd></dl><p><b>DhcpAttribId:</b>  This is of type <span><a href="36183913-873b-4aa4-8ea8-1d16359f9ffc" data-linktype="relative-path">DHCP_ATTRIB_ID (section 2.2.1.1.1)</a></span>,
a <span><a href="../ms-dtyp/32862b84-f6e6-40f9-85ca-c4faf985b822" data-linktype="relative-path">ULONG</a></span>
value specifying the attribute.</p><p><b>DhcpAttribType:</b>  This is of type
ULONG. The value specifies the type of the attribute&#39;s data and which one of
the values is chosen from the subsequent union.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>DHCP_ATTRIB_TYPE_BOOL</p>
  <p>0x00000001</p>
  </td>
  <td>
  <p>The attribute value is of type <span><a href="../ms-dtyp/9d81be47-232e-42cf-8f0d-7a3b29bf2eb2" data-linktype="relative-path">BOOL</a></span>,
  and DhcpAttribBool is chosen from the following union.</p>
  </td>
 </tr><tr>
  <td>
  <p>DHCP_ATTRIB_TYPE_ULONG</p>
  <p>0x00000002</p>
  </td>
  <td>
  <p>The attribute value is of type ULONG, and
  DhcpAttribUlong is chosen from the following union.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>DhcpAttribBool:</b>  This is of type
BOOL and contains the value of the attribute. This is chosen from the union if <b>DhcpAttribType</b>
contains <b>DHCP_ATTRIB_TYPE_BOOL</b>.</p><p><b>DhcpAttribUlong:</b>  This is of type
ULONG and contains the value of the attribute. This is chosen from the union if
<b>DhcpAttribType</b>  contains <b>DHCP_ATTRIB_TYPE_ULONG</b>.</p></div>