Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The DhcpV4FailoverAddScopeToRelationship function adds a DHCPv4 scope to the specified failover relationship.
DWORD DHCP_API_FUNCTION DhcpV4FailoverAddScopeToRelationship(
[in, optional] LPWSTR ServerIpAddress,
[in] LPDHCP_FAILOVER_RELATIONSHIP pRelationship
);
[in, optional] ServerIpAddress
Pointer to a null-terminated Unicode string that represents the IP address or hostname of the DHCP server.
[in] pRelationship
Pointer to a DHCP_FAILOVER_RELATIONSHIP structure that contains both the scope information to add and the failover relationship to modify.
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. |
|
IPv4 scope doesn't exist on the DHCPv4 server. |
|
IPv4 scope is already part of another failover relationship. |
|
Failover relationship doesn't exist. |
|
Number of scopes being added to the failover relationship exceeds the max number of scopes which can be added to a failover relationship at one time. |
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 |
DhcpV4FailoverDeleteScopeFromRelationship
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today