UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:dhcpsapi.DhcpV4RemovePolicyRange |
DhcpV4RemovePolicyRange function (dhcpsapi.h) |
Removes the specified IP address range from the list of IP address ranges of the policy. |
|
dhcp\dhcpv4removepolicyrange.htm |
DHCP |
2799e869-e9dd-41de-b808-8e4c52ee9ecf |
12/05/2018 |
DhcpV4RemovePolicyRange, DhcpV4RemovePolicyRange function [DHCP], dhcp.dhcpv4removepolicyrange, dhcpsapi/DhcpV4RemovePolicyRange |
dhcpsapi.h |
Windows |
None supported |
Windows Server 2012 [desktop apps only] |
Dhcpsapi.lib |
Dhcpsapi.dll |
Windows |
19H1 |
|
|
|
|
|
|
The DhcpV4RemovePolicyRange function removes the specified IP address range from the list of IP address ranges of the policy.
Pointer to a null-terminated Unicode string that represents the IP address or hostname of the DHCP server.
DHCP_IP_ADDRESS structure that contains the IPv4 subnet address of the policy IP address range to remove.
A null-terminated Unicode string that represents the name of the policy IP address range to remove.
A pointer to a DHCP_IP_RANGE structure that contains the policy IP address range to remove.
If the function succeeds, it returns ERROR_SUCCESS.
If the function fails, it returns one of the following or an error code from DHCP Server Management API Error Codes.
Value | Meaning |
---|---|
|
One or more of the parameters were invalid. |
|
The specified IPv4 subnet does not exist. |
|
The specified policy does not exist. |
|
The specified policy range is not contained within the IP address range of the scope. |