Windows Dev Center

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

DhcpAddSubnetElementV5 function

The DhcpAddSubnetElementV5 function adds an element describing a feature or aspect of the subnet to the subnet entry in the DHCP database.

Windows 2000 and earlier:  This function is not available.

Syntax


DWORD DhcpAddSubnetElementV5(
  _In_opt_ DHCP_CONST WCHAR                       *ServerIpAddress,
  _In_     DHCP_IP_ADDRESS                        SubnetAddress,
  _In_     DHCP_CONST DHCP_SUBNET_ELEMENT_DATA_V5 *AddElementInfo
);

Parameters

ServerIpAddress [in, optional]

Pointer to a Unicode string that contains the IP address or hostname of the subnet DHCP server.

SubnetAddress [in]

DHCP_IP_ADDRESS structure that contains the IP address of the subnet.

AddElementInfo [in]

Pointer to a DHCP_SUBNET_ELEMENT_DATA_V5 structure that contains the element data to add to the subnet. The V5 structure adds support for BOOTP clients.

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 API emulates the RPC interface used by the Windows NT 4.0 DHCP server. It is provided for backward compatibility with older versions of the DHCP Administrator application.

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

DHCP_SUBNET_ELEMENT_DATA_V5

 

 

Community Additions

ADD
Show:
© 2015 Microsoft