Platform SDK: Network Management

DhcpCApiInitialize

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.

DWORD
APIENTRY
DhcpCApiInitialize(
  OUT DWORD *pdwVersion
);

Parameters

pdwVersion
Pointer to the DHCP version implemented by the client.

Return Values

Returns ERROR_SUCCESS upon successful completion.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dhcpcsdk.h.
  Library: Use Dhcpcsvc.lib.

See Also

DHCP Overview, DHCP Functions, DhcpCApiCleanup