Expand Minimize

DhcpSetServerBindingInfoV6 function

The DhcpSetServerBindingInfoV6 function sets or modifies the IPv6 interface bindings for the DHCPv6 server.

Syntax


DWORD WINAPI DhcpSetServerBindingInfoV6(
  _In_  DHCP_CONST WCHAR *ServerIpAddress,
  _In_  ULONG Flags,
  _In_  LPDHCPV6_BIND_ELEMENT_ARRAY BindElementsInfo
);

Parameters

ServerIpAddress [in]

Pointer to a Unicode string that specifies the IP address or hostname of the DHCP server.

Flags [in]

This parameter is not used and must be set to 0.

BindElementsInfo [in]

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 codeDescription
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_NETWORK_CHANGED

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.

ERROR_DHCP_CANNOT_MODIFY_BINDING

The supplied bindings to internal IPv6 addresses cannot be modified.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DHCPV6_BIND_ELEMENT_ARRAY
DhcpGetServerBindingInfoV6

 

 

Community Additions

ADD
Show:
© 2014 Microsoft