Expand Minimize

DhcpDeleteSubnet function

The DhcpDeleteSubnet function deletes a subnet from the DHCP server.

Syntax


DWORD DHCP_API_FUNCTION DhcpDeleteSubnet(
  _In_  DHCP_CONST WCHAR *ServerIpAddress,
  _In_  DHCP_IP_ADDRESS SubnetAddress,
  _In_  DHCP_FORCE_FLAG ForceFlag
);

Parameters

ServerIpAddress [in]

Unicode string that specifies the IP address of the subnet to delete.

SubnetAddress [in]

DHCP_IP_ADDRESS value that contains the IP address of the subnet gateway used to identify the subnet.

ForceFlag [in]

DHCP_FORCE_FLAG enumeration value that indicates the type of delete operation to perform (full force or no force).

Return value

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

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

DhcpCreateSubnet
DhcpEnumSubnets
DHCP_FORCE_FLAG

 

 

Community Additions

ADD
Show:
© 2015 Microsoft