DhcpServerSetConfigV6 function

The DhcpServerSetConfigV6 function sets the DHCPv6 server configuration data at the scope or server level.

Syntax


DWORD WINAPI DhcpServerSetConfigV6(
  _In_ DHCP_CONST WCHAR             *ServerIpAddress,
  _In_ DHCP_OPTION_SCOPE_INFO6      ScopeInfo,
  _In_ DWORD                        FieldsToSet,
  _In_ LPDHCP_SERVER_CONFIG_INFO_V6 ConfigInfo
);

Parameters

ServerIpAddress [in]

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

ScopeInfo [in]

Pointer to a DHCP_OPTION_SCOPE_INFO6 structure that contains the configuration information at the scope or server level.

FieldsToSet [in]

Specifies the set of value that indicate the type of configuration information provided in ConfigInfo. Only one of these values may be set per call.

ValueMeaning
Set_UnicastFlag
0x00000001

Not used.

Set_RapidCommitFlag
0x00000002

Not used.

Set_PreferredLifetime
0x00000004

Sets the preferred lifetime value for a non-temporary IPv6 address.

Set_ValidLifetime
0x00000008

Sets the valid lifetime value for a non-temporary IPv6 address.

Set_T1
0x00000010

Sets the T1 time value.

Set_T2
0x00000020

Sets the T2 time value.

Set_PreferredLifetimeIATA
0x00000040

Not used.

Set_ValidLifetimeIATA
0x00000080

Not used.

Set_AuditLogState
0x00000800

Sets the audit log state in the registry.

 

ConfigInfo [in]

Pointer to a DHCP_SERVER_CONFIG_INFO_V6 structure that contains configuration information of the type indicated by the value supplied in FieldsToSet.

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_SERVER_CONFIG_INFO_V6

 

 

Show: