<div class="content"><p> </p><p>The <b>DHCP_SEARCH_INFO</b> structure defines the <span><a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_c35fc04f-54fe-4570-afd3-c96ca84c8d83" data-linktype="relative-path">DHCPv4
client</a></span> information search type defined by <i>SearchType</i>, along
with the data used within that search. This structure, used in the <span><a href="a59ad25b-b058-420b-9176-b0a00c460478" data-linktype="relative-path">R_DhcpGetClientInfo (section 3.1.4.19)</a></span>
method, is used to search a specific DHCPv4 client.</p><dl>
<dd>
<div><pre> typedef struct _DHCP_SEARCH_INFO {
     DHCP_SEARCH_INFO_TYPE SearchType;
     [switch_is(SearchType), switch_type(DHCP_SEARCH_INFO_TYPE)]
     union _DHCP_CLIENT_SEARCH_UNION {
         [case(DhcpClientIpAddress)]  DHCP_IP_ADDRESS  ClientIpAddress;
         [case(DhcpClientHardwareAddress)]  DHCP_CLIENT_UID  ClientHardwareAddress;
         [case(DhcpClientName)]  LPWSTR  ClientName;
     } SearchInfo;
 } DHCP_SEARCH_INFO, *LPDHCP_SEARCH_INFO;
</pre></div>
</dd></dl><p><b>SearchType:</b>  This is an enumeration
of type <span><a href="7238ec9c-da9e-4820-827b-55f803f6491f" data-linktype="relative-path">DHCP_SEARCH_INFO_TYPE (section 2.2.1.1.3)</a></span>
that contains the data type based on which the search is performed for a
specific DHCPv4 client record held by the <span><a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_746786e7-458f-45aa-ab24-5534a94b4fb3" data-linktype="relative-path">DHCPv4 server</a></span>.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>DhcpClientIpAddress</p>
  <p>0</p>
  </td>
  <td>
  <p>The DHCPv4 client IPv4 address (section <span><a href="5122557b-b85d-4982-8ffb-98d8d934e353" data-linktype="relative-path">2.2.1.2.1</a></span>),
  specified in a subsequent field, is used to search for the DHCPv4 client <span><a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_e6d76b31-2852-4bd5-8fbb-8e82a3cedb29" data-linktype="relative-path">lease
  record</a></span> in the <span><a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_005ffc96-bb67-44ca-938f-dd7ec3c95cab" data-linktype="relative-path">DHCPv4 server database</a></span>.</p>
  </td>
 </tr><tr>
  <td>
  <p>DhcpClientHardwareAddress</p>
  <p>1</p>
  </td>
  <td>
  <p>The <span><a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_4c35997a-5d90-4d7e-96c8-346f4ad0a63f" data-linktype="relative-path">DHCPv4 client unique ID</a></span>
  (section <span><a href="651865ec-6404-4191-ad30-113578a94556" data-linktype="relative-path">2.2.1.2.5.2</a></span>),
  specified in a subsequent field, is used to search for the DHCPv4 client
  lease record in the DHCPv4 server database.</p>
  </td>
 </tr><tr>
  <td>
  <p>DhcpClientName</p>
  <p>2</p>
  </td>
  <td>
  <p>A pointer to a null-terminated <span><a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_b069acb4-e364-453e-ac83-42d469bb339e" data-linktype="relative-path">Unicode
  string</a></span> that contains the name of the DHCPv4 client. It is used to
  search for the DHCPv4 client lease record in the DHCPv4 server database.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>SearchInfo:</b>  A union that can
contain one of the following values chosen based on the value of <i>SearchType</i>.</p><p><b>ClientIpAddress:</b>   A pointer to a
DHCP_IP_ADDRESS (section 2.2.1.2.1) structure that is used to search
for the DHCPv4 client lease record in the DHCPv4 server database.</p><p><b>ClientHardwareAddress:</b>  A pointer to
a <span><a href="b4da2d52-9737-46ec-8bc2-1c598fc3b8c8" data-linktype="relative-path">DHCP_CLIENT_UID (section 2.2.1.2.5)</a></span>
structure that represents the unique ID of a DHCPv4 client (section
2.2.1.2.5.2). It is used to search for the DHCPv4 client lease record in the
DHCPv4 server database.</p><p><b>ClientName:</b>  A pointer to a
null-terminated Unicode string, of type <span><a href="../ms-dtyp/50e9ef83-d6fd-4e22-a34a-2c6b4e3c24f3" data-linktype="relative-path">LPWSTR</a></span>,
that contains the name of the DHCPv4 client. It is used to search for the
DHCPv4 client lease record in the DHCPv4 server database. There is no restriction
on the length of this Unicode string. </p></div>