DhcpServerGetConfigV4 function (dhcpsapi.h)
The DhcpServerGetConfigV4 function returns the specific configuration settings of a DHCP server. This function extends the functionality of DhcpServerGetConfig by adding configuration parameters for the number of ping retries a server uses to determine connectability, the settings for the boot file table, and the audit log state. Configuration information includes information on the JET database used to store subnet and client lease information, and the supported protocols.
Syntax
DWORD DHCP_API_FUNCTION DhcpServerGetConfigV4(
[in] DHCP_CONST WCHAR *ServerIpAddress,
[out] LPDHCP_SERVER_CONFIG_INFO_V4 *ConfigInfo
);
Parameters
[in] ServerIpAddress
Unicode string that specifies the IP address or hostname of the DHCP server.
[out] ConfigInfo
Pointer to a DHCP_SERVER_CONFIG_INFO_V4 structure that contains the specific configuration information for the DHCP server.
The memory for this parameter must be free using DhcpRpcFreeMemory.
Return value
This function returns ERROR_SUCCESS upon a successful call. Otherwise, it returns one of the DHCP Server Management API Error Codes.
Return code | Description |
---|---|
|
This call was performed by a client who is not a member of the "DHCP Administrators" security group. |
|
An error occurred while accessing the DHCP server's database. |
|
One of the parameters provides an invalid value. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | dhcpsapi.h |
Library | Dhcpsapi.lib |
DLL | Dhcpsapi.dll |