DhcpDeleteFilterV4 function (dhcpsapi.h)

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
ERROR_ACCESS_DENIED
This call was performed by a client who is not a member of the "DHCP Administrators" security group.
ERROR_DHCP_JET_ERROR
An error occurred while accessing the DHCP server's database.
ERROR_DHCP_LINKLAYER_ADDRESS_DOES_NOT_EXIST
The address or address pattern does not exist in an allow/deny list.
ERROR_INVALID_PARAMETER
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

See also

DHCP_ADDR_PATTERN

DhcpAddFilterV4