DhcpHlprAddV4PolicyRange function (dhcpsapi.h)
The DhcpHlprAddV4PolicyRange function adds a DHCP IPv4 range to a DHCP server policy.
Syntax
DWORD DHCP_API_FUNCTION DhcpHlprAddV4PolicyRange(
[in, out] LPDHCP_POLICY Policy,
[in] LPDHCP_IP_RANGE Range
);
Parameters
[in, out] Policy
Pointer to a DHCP_POLICY structure that contains the policy to modify.
[in] Range
Pointer to a DHCP_IP_RANGE structure that contains the DHCP IPv4 range to add to the DHCP server policy range array.
Return value
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. |
|
Not enough memory available. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | dhcpsapi.h |
Library | Dhcpsapi.lib |
DLL | Dhcpsapi.dll |