DhcpServerSetDnsRegCredentialsV5 function

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 WINAPI DhcpServerSetDnsRegCredentialsV5(
  _In_ DHCP_SRV_HANDLE ServerIpAddress,
  _In_ LPWSTR          Uname,
  _In_ LPWSTR          Domain,
  _In_ LPWSTR          Password
);

Parameters

ServerIpAddress [in]

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

Uname [in]

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

Domain [in]

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

Password [in]

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

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

DhcpServerQueryDnsRegCredentials

 

 

Show: