Expand Minimize

DhcpGetServerBindingInfo function

The DhcpGetServerBindingInfo function returns endpoint bindings set on the DHCP server.

Syntax


DWORD DHCP_API_FUNCTION DhcpGetServerBindingInfo(
  _In_   DHCP_CONST WCHAR *ServerIpAddress,
  _In_   ULONG Flags,
  _Out_  LPDHCP_BIND_ELEMENT_ARRAY *BindElementsInfo
);

Parameters

ServerIpAddress [in]

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

Flags [in]

Specifies a set of flags describing the endpoints to return.

ValueMeaning
DHCP_ENDPOINT_FLAG_CANT_MODIFY
0x01

Returns unmodifiable endpoints only.

 

BindElementsInfo [out]

Pointer to a DHCP_BIND_ELEMENT_ARRAY structure that contains the server network endpoint bindings.

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.

Remarks

This function requires network byte ordering for all DHCP_IP_ADDRESS values in parameter structures.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DhcpSetServerBindingInfo
DHCP_BIND_ELEMENT_ARRAY

 

 

Community Additions

ADD
Show:
© 2014 Microsoft