Skip to content

Latest commit

 

History

History
125 lines (103 loc) · 3.08 KB

nf-dhcpsapi-dhcpremoveoptionv6.md

File metadata and controls

125 lines (103 loc) · 3.08 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.DhcpRemoveOptionV6
DhcpRemoveOptionV6 function (dhcpsapi.h)
The DhcpRemoveOptionV6 function removes an option defined on the DHCP server.
DHCP_FLAGS_OPTION_IS_VENDOR
DhcpRemoveOptionV6
DhcpRemoveOptionV6 function [DHCP]
dhcp.dhcpremoveoptionv6
dhcpsapi/DhcpRemoveOptionV6
dhcp\dhcpremoveoptionv6.htm
DHCP
fccd07f2-b796-46b9-a004-edefa92ed08c
12/05/2018
DHCP_FLAGS_OPTION_IS_VENDOR, DhcpRemoveOptionV6, DhcpRemoveOptionV6 function [DHCP], dhcp.dhcpremoveoptionv6, dhcpsapi/DhcpRemoveOptionV6
dhcpsapi.h
Windows
None supported
Windows Server 2008 [desktop apps only]
Dhcpsapi.lib
Dhcpsapi.dll
Windows
19H1
DhcpRemoveOptionV6
dhcpsapi/DhcpRemoveOptionV6
c++
APIRef
kbSyntax
DllExport
Dhcpsapi.dll
DhcpRemoveOptionV6

DhcpRemoveOptionV6 function

-description

The DhcpRemoveOptionV6 function removes an option defined on the DHCP server..

-parameters

-param ServerIpAddress [in]

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

-param Flags [in]

Specifies a bit flag that indicates whether or not the option is vendor-specific. If it is not, this parameter should be 0.

Value Meaning
DHCP_FLAGS_OPTION_IS_VENDOR
This flag should be set if the option is provided by a vendor.

-param OptionID [in]

DHCP_OPTION_ID value that specifies the code for the option to remove.

-param ClassName [in]

Unicode string that specifies the DHCP class name of the option. This parameter is optional.

-param VendorName [in]

Unicode string that specifies the vendor of the option. This parameter is optional, and should be NULL when Flags is not set to DHCP_FLAGS_OPTION_IS_VENDOR.

-returns

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

Return code Description
ERROR_INVALID_PARAMETER
The parameters were invalid.
ERROR_DHCP_OPTION_NOT_PRESENT
The specified option is not present on the DHCP server.