Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

DhcpServerGetConfigVQ function

The DhcpServerGetConfigVQ function retrieves the current DHCP server configuration settings.

Syntax


DWORD WINAPI DhcpServerGetConfigVQ(
  _In_  DHCP_CONST WCHAR             *ServerIpAddress,
  _Out_ LPDHCP_SERVER_CONFIG_INFO_VQ *ConfigInfo
);

Parameters

ServerIpAddress [in]

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

ConfigInfo [out]

Pointer to the address of a DHCP_SERVER_CONFIG_INFO_VQ structure that contains the returned DHCP server configuration settings.

Return value

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

Return codeDescription
ERROR_ACCESS_DENIED

This call was performed by a client who is not a member of the "DHCP Administrators" security group.

 

Remarks

The caller of this function must free the memory pointed to by ConfigInfo by calling DhcpRpcFreeMemory.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DHCP_SERVER_CONFIG_INFO_VQ
DhcpServerSetConfigVQ

 

 

Community Additions

ADD
Show:
© 2015 Microsoft