DhcpCreateClientInfo function

The DhcpCreateClientInfo function creates a client information record on the DHCP server.

Syntax


DWORD DhcpCreateClientInfo(
  _In_ DHCP_CONST WCHAR            *ServerIpAddress,
  _In_ DHCP_CONST DHCP_CLIENT_INFO *ClientInfo
);

Parameters

ServerIpAddress [in]

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

ClientInfo [in]

DHCP_CLIENT_INFO structure that contains information about the DHCP client, including the assigned IP address, subnet mask, and host.

Return value

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

Remarks

This function requires host byte ordering for all DHCP_IP_ADDRESS values in parameter structures.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DhcpDeleteClientInfo
DHCP_CLIENT_INFO

 

 

Show: