DhcpCApiInitialize function (dhcpcsdk.h)
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
[out] 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 |