DhcpSetServerBindingInfoV6 function (dhcpsapi.h)
The DhcpSetServerBindingInfoV6 function sets or modifies the IPv6 interface bindings for the DHCPv6 server.
Syntax
DWORD DHCP_API_FUNCTION DhcpSetServerBindingInfoV6(
[in] DHCP_CONST WCHAR *ServerIpAddress,
[in] ULONG Flags,
[in] LPDHCPV6_BIND_ELEMENT_ARRAY BindElementInfo
);
Parameters
[in] ServerIpAddress
Pointer to a Unicode string that specifies the IP address or hostname of the DHCP server.
[in] Flags
This parameter is not used and must be set to 0.
[in] BindElementInfo
Pointer to a DHCPV6_BIND_ELEMENT_ARRAY structure that contains the IPv6 interface bindings for the DHCPv6 server.
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 network has changed. Retry this operation after checking for network changes. Network changes can be caused by interfaces that are either new or no longer valid, or by IPv6 addresses that are either new or no longer valid. |
|
The supplied bindings to internal IPv6 addresses cannot be modified. |
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 |