Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The DhcpDeleteFilterV4 function deletes a link-layer address or address pattern from a DHCP server's allow/deny lists.
Syntax
DWORD DHCP_API_FUNCTION DhcpDeleteFilterV4(
  [in] DHCP_CONST WCHAR  *ServerIpAddress,
  [in] DHCP_ADDR_PATTERN *DeleteFilterInfo
);
Parameters
[in] ServerIpAddress
Pointer to a Unicode string that specifies the IP address or hostname of the DHCP server.
[in] DeleteFilterInfo
Pointer to a DHCP_ADDR_PATTERN structure that contains the link-layer address or address pattern filter to remove from the DHCP server database.
Return value
This function returns ERROR_SUCCESS upon a successful call. Otherwise, it returns one of the DHCP Server Management API Error Codes.
| Return code | Description | 
|---|---|
| 
 | This call was performed by a client who is not a member of the "DHCP Administrators" security group. | 
| 
 | An error occurred while accessing the DHCP server's database. | 
| 
 | The address or address pattern does not exist in an allow/deny list. | 
| 
 | The address or address pattern supplied in DeleteFilterInfo is invalid. | 
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | None supported | 
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] | 
| Target Platform | Windows | 
| Header | dhcpsapi.h | 
| Library | Dhcpsapi.lib | 
| DLL | Dhcpsapi.dll |