Expand Minimize

DhcpGetServerSpecificStrings function

The DhcpGetServerSpecificStrings function retrieves the names of the default vendor class and user class.

Syntax


DWORD DHCP_API_FUNCTION WINAPI DhcpGetServerSpecificStrings(
  _In_   DHCP_CONST WCHAR *ServerIpAddress,
  _Out_  LPDHCP_SERVER_SPECIFIC_STRINGS *ServerSpecificStrings
);

Parameters

ServerIpAddress [in]

Unicode string that specifies the IPv4 address of the DHCPv4 server.

ServerSpecificStrings [out]

Pointer to a DHCP_SERVER_SPECIFIC_STRINGS structure that receives the information for the default vendor class and user class name strings.

Note  

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 codeDescription
ERROR_DHCP_JET_ERROR

An error occurred while accessing the DHCP server database.

 

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_SPECIFIC_STRINGS

 

 

Community Additions

ADD
Show:
© 2014 Microsoft