<div class="content" name="R_DhcpGetFilterV4" uuid="38903f13-e000-4aac-9752-f8323f064404"><p>The <b>R_DhcpGetFilterV4</b> method is used to retrieve the
enable or disable settings for the allow and deny lists.</p><dl>
<dd>
<div><pre> DWORD R_DhcpGetFilterV4(
   [in, unique, string] DHCP_SRV_HANDLE ServerIpAddress,
   [out] DHCP_FILTER_GLOBAL_INFO* GlobalFilterInfo
 );
</pre></div>
</dd></dl><p><b>ServerIpAddress: </b>The IP address/host name of
the DHCP server. This parameter is unused.</p><p><b>GlobalFilterInfo: </b>This is a pointer of type <a href="94f51622-4b9c-48f2-8c2e-11f9a71d5046" data-linktype="relative-path">LPDHCP_FILTER_GLOBAL_INFO</a>
that contains information to enable or disable allow and deny lists. The caller
must allocate memory for this parameter that is equal to the size of
DHCP_FILTER_GLOBAL_INFO (section 2.2.1.2.91).</p><p><b>Return Values: </b>A 32-bit unsigned integer value
that indicates return status. A return value ERROR_SUCCESS (0x00000000)
indicates that the operation was completed successfully, else it contains a
Win32 error code, as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.
This error code value can correspond to a DHCP-specific failure, which takes a
value between 20000 and 20099, or any generic failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000 ERROR_SUCCESS</td>
  <td>The call was successful.</td>
 </tr><tr>
  <td>0x00004E2D ERROR_DHCP_JET_ERROR</td>
  <td>An error occurred while accessing the DHCP server database.</td>
 </tr></tbody></table>
</dd></dl><p>The opnum field value for this method is 85.</p><p>When processing this call, the DHCP server MUST do the
following:</p><ul><li><p><span><span> 
</span></span>Validate whether this method is authorized for read access per
section <a href="baec2112-1146-4c42-b77e-b706e170a590" data-linktype="relative-path">3.5.4</a>. If not,
return error ERROR_ACCESS_DENIED.</p>
</li><li><p><span><span> 
</span></span>If the <i>GlobalFilterInfo</i> is NULL, return error
ERROR_INVALID_PARAMETER.</p>
</li><li><p><span><span> 
</span></span>Copy the information in <b>DHCPv4FilterStatus</b> in the <i>GlobalFilterInfo</i>
structure and return it to the caller.</p>
</li></ul><p><b>Exceptions Thrown:</b> No exceptions are thrown beyond
those thrown by the underlying RPC protocol <a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a>.</p></div>