Expand Minimize
This topic has not yet been rated - Rate this topic

DhcpCreateClassV6 function

The DhcpCreateClassV6 function creates a custom DHCPv6 option class.

Syntax


DWORD WINAPI DhcpCreateClassV6(
  _In_  LPWSTR ServerIpAddress,
  _In_  DWORD ReservedMustBeZero,
  _In_  LPDHCP_CLASS_INFO_V6 ClassInfo
);

Parameters

ServerIpAddress [in]

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

ReservedMustBeZero [in]

Reserved. This field must be set to zero.

ClassInfo [in]

DHCP_CLASS_INFO_V6 structure that contains the specific option class data.

Return value

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

Return codeDescription
ERROR_ACCESS_DENIED

This call was performed by a client who is not a member of the "DHCP Administrators" security group.

ERROR_DHCP_JET_ERROR

An error occurred while accessing the DHCP server's database.

ERROR_DHCP_CLASS_ALREADY_EXISTS

The specified class name is already defined on the DHCP server, or the class information is already in use.

 

Requirements

Minimum supported client

None supported [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DHCP_CLASS_INFO_V6

 

 

Send comments about this topic to Microsoft

Build date: 2/28/2013

Community Additions

ADD
© 2013 Microsoft. All rights reserved.