DhcpCApiInitialize function

The DhcpCApiInitialize function must be the first function call made by users of DHCP; it prepares the system for all other DHCP function calls. Other DHCP functions should only be called if the DhcpCApiInitialize function executes successfully.

Syntax

DWORD DhcpCApiInitialize(
  OUT LPDWORD Version
);

Parameters

Version

Pointer to the DHCP version implemented by the client.

Return Value

Returns ERROR_SUCCESS upon successful completion.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header dhcpcsdk.h
Library Dhcpcsvc.lib
DLL Dhcpcsvc.dll

See Also

DHCP Functions

DhcpCApiCleanup