DhcpServerGetConfigV6 function

The DhcpServerGetConfigV6 function retrieves the configuration information for the DHCPv6 server.

Syntax


DWORD WINAPI DhcpServerGetConfigV6(
  _In_  DHCP_CONST WCHAR             *ServerIpAddress,
  _In_  LPDHCP_OPTION_SCOPE_INFO6    ScopeInfo,
  _Out_ LPDHCP_SERVER_CONFIG_INFO_V6 *ConfigInfo
);

Parameters

ServerIpAddress [in]

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

ScopeInfo [in]

Pointer to a DHCP_OPTION_SCOPE_INFO6 structure used to identify the DHCPv6 scope for which configuration information will be retrieved.

ConfigInfo [out]

Pointer to the address of a DHCP_SERVER_CONFIG_INFO_V6 structure that contains the requested configuration information.

Note  

The memory for this parameter must be free using DhcpRpcFreeMemory.

 

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.

 

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

DHCP_OPTION_SCOPE_INFO6
DHCP_SERVER_CONFIG_INFO_V6

 

 

Show: