Skip to content

Latest commit

 

History

History
91 lines (66 loc) · 3.11 KB

nf-dhcpsapi-dhcpremovesubnetelementv5.md

File metadata and controls

91 lines (66 loc) · 3.11 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dhcpsapi.DhcpRemoveSubnetElementV5
DhcpRemoveSubnetElementV5 function (dhcpsapi.h)
The DhcpRemoveSubnetElementV5 function removes an element from a subnet defined on the DHCP server.
DhcpRemoveSubnetElementV5
DhcpRemoveSubnetElementV5 function [DHCP]
dhcp.dhcpremovesubnetelementv5
dhcpsapi/DhcpRemoveSubnetElementV5
dhcp\dhcpremovesubnetelementv5.htm
DHCP
8232b2cc-0bb1-4509-ad5f-6d1d1ece9fe5
12/05/2018
DhcpRemoveSubnetElementV5, DhcpRemoveSubnetElementV5 function [DHCP], dhcp.dhcpremovesubnetelementv5, dhcpsapi/DhcpRemoveSubnetElementV5
dhcpsapi.h
Windows
None supported
Windows 2000 Server [desktop apps only]
Dhcpsapi.lib
Dhcpsapi.dll
Windows
19H1
DhcpRemoveSubnetElementV5
dhcpsapi/DhcpRemoveSubnetElementV5
c++
APIRef
kbSyntax
DllExport
Dhcpsapi.dll
DhcpRemoveSubnetElementV5

DhcpRemoveSubnetElementV5 function

-description

The DhcpRemoveSubnetElementV5 function removes an element from a subnet defined on the DHCP server.

-parameters

-param ServerIpAddress [in, optional]

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

-param SubnetAddress [in]

DHCP_IP_ADDRESS value that specifies the IP address of the subnet gateway and uniquely identifies it.

-param RemoveElementInfo [in]

DHCP_SUBNET_ELEMENT_DATA_V5 structure that contains information used to find the element that will be removed from subnet specified in SubnetAddress.

-param ForceFlag [in]

DHCP_FORCE_FLAG enumeration value that indicates whether or not the clients affected by the removal of the subnet element should also be deleted.

-returns

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

-remarks

This function 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.

-see-also

DHCP_FORCE_FLAG

DHCP_SUBNET_ELEMENT_DATA_V5

DhcpAddSubnetElementV5