Windows Dev Center

Expand Minimize

DhcpV6SetStatelessStoreParams function

The DhcpV6SetStatelessStoreParams function sets the DHCPv6 stateless client inventory configuration settings at the server or scope level.

Syntax


DWORD DHCP_API_FUNCTION DhcpV6SetStatelessStoreParams(
  _In_opt_ LPWSTR                    ServerIpAddress,
  _In_     BOOL                      fServerLevel,
  _In_     DHCP_IPV6_ADDRESS         SubnetAddress,
  _In_     DWORD                     FieldModified,
  _In_     LPDHCPV6_STATELESS_PARAMS Params
);

Parameters

ServerIpAddress [in, optional]

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

fServerLevel [in]

If TRUE the stateless client inventory configuration settings at server level are modified. Otherwise, the scope level configuration settings are modified.

SubnetAddress [in]

A DHCP_IPV6_ADDRESS structure that contains the IPv6 subnet address of the stateless client inventory configuration settings to be modified. If the value of fServerLevel is TRUE, this must be 0.

FieldModified [in]

A value from the DHCPV6_STATELESS_PARAM_TYPE enumeration that defines the DHCPv6 stateless client inventory configuration parameter type to be modified.

Params [in]

Pointer to a DHCPV6_STATELESS_PARAMS structure that contains the stateless client inventory configuration settings for a DHCPv6 server.

Return value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, it returns one of the following or an error code from DHCP Server Management API Error Codes.

ValueMeaning
ERROR_INVALID_PARAMETER

One or more of the parameters were invalid.

ERROR_DHCP_SUBNET_NOT_PRESENT

IPv6 subnet does not exist on the DHCPv6 server.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DhcpV6GetStatelessStatistics
DhcpV6GetStatelessStoreParams

 

 

Community Additions

ADD
Show:
© 2015 Microsoft