DhcpAddSubnetElementV5 function (dhcpsapi.h)
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 DHCP_API_FUNCTION DhcpAddSubnetElementV5(
[in, optional] DHCP_CONST WCHAR *ServerIpAddress,
[in] DHCP_IP_ADDRESS SubnetAddress,
[in] DHCP_CONST DHCP_SUBNET_ELEMENT_DATA_V5 *AddElementInfo
);
Parameters
[in, optional] ServerIpAddress
Pointer to a Unicode string that contains the IP address or hostname of the subnet DHCP server.
[in] SubnetAddress
DHCP_IP_ADDRESS structure that contains the IP address of the subnet.
[in] AddElementInfo
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
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | dhcpsapi.h |
Library | Dhcpsapi.lib |
DLL | Dhcpsapi.dll |