Edit

Share via


DhcpServerSetDnsRegCredentialsV5 function (dhcpsapi.h)

The DhcpServerSetDnsRegCredentialsV5 function sets the credentials used by the DHCP server to create Domain Name System (DNS) registrations for the DHCP client lease record.

Syntax

DWORD DhcpServerSetDnsRegCredentialsV5(
  [in] LPWSTR ServerIpAddress,
  [in] LPWSTR Uname,
  [in] LPWSTR Domain,
  [in] LPWSTR Passwd
);

Parameters

[in] ServerIpAddress

DHCP_SRV_HANDLE that specifies the RPC binding to the DHCP server on which the DNS credentials will be set.

[in] Uname

Pointer to a null-terminated Unicode string that specifies the user name for the DNS credentials.

[in] Domain

Pointer to a null-terminated Unicode string that specifies the ___domain name for the DNS credentials.

[in] Passwd

Pointer to a null-terminated Unicode string that specifies the password for the DNS credentials. The password can be unencrypted.

Return value

This function returns ERROR_SUCCESS upon a successful call. Otherwise, it returns one of the DHCP Server Management API Error Codes.

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

See also

DhcpServerQueryDnsRegCredentials