<div class="content"><p> </p><p>The <b>R_DhcpSetClientInfoV6</b> method sets/modifies the
client reservation record on the DHCPv6 server database. This method is
supposed to be called only after the reserved DHCPv6 client is added using the <span><a href="2bb3dac1-b29c-4457-8297-2201f28930f8" data-linktype="relative-path">R_DhcpAddSubnetElementV6 (section 3.2.4.60)</a></span>
method.<a id="Appendix_A_Target_69"></a><a aria-label="Product behavior note 69" href="afab0546-79ae-4764-8dab-27a85cca5145#Appendix_A_69" data-linktype="relative-path">&lt;69&gt;</a></p><dl>
<dd>
<div><pre> DWORD R_DhcpSetClientInfoV6(
   [in, unique, string] DHCP_SRV_HANDLE ServerIpAddress,
   [in, ref] LPDHCP_CLIENT_INFO_V6 ClientInfo
 );
</pre></div>
</dd></dl><p><b>ServerIpAddress: </b>The IP address/host name of
the DHCP server. This parameter is unused.</p><p><b>ClientInfo: </b>This is a pointer of type section <span><a href="d07ea139-f254-4076-a2cc-71cefc676683" data-linktype="relative-path">DHCP_CLIENT_INFO_V6 (section 2.2.1.2.64)</a></span>
that contains the DHCPv6 client lease record information that needs to be
modified on the DHCPv6 server database.</p><p><b>Return Values: </b>A 32-bit unsigned integer value
that indicates return status. A return value of ERROR_SUCCESS (0x00000000)
indicates that the operation was completed successfully, else it contains a
Win32 error code, as specified in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>.
This error code value can correspond to a DHCP-specific failure, which takes a
value between 20000 and 20099, or any generic failure.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>ERROR_SUCCESS</p>
  </td>
  <td>
  <p>The call was successful.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>The opnum field value for this method is 71.</p><p>When processing this call the DHCP server MUST do the
following:</p><ul><li><p><span><span> 
</span></span>Validate if this method is authorized for read/write access per
section <span><a href="38840bd0-0a5a-47ed-bc69-0dd870d33aec" data-linktype="relative-path">3.5.5</a></span>. If not,
return the error ERROR_ACCESS_DENIED.</p>
</li><li><p><span><span> 
</span></span>Retrieve the <b>DHCPv6Scope</b> object and the <b>DHCPv6Scope.DHCPv6ClientInfo</b>
object corresponding to <b>ClientInfo</b>. This <b>DHCPv6ClientInfo</b> object
can correspond to an entry in <b>DHCPv6Scope.DHCPv6ReservationList</b>.</p>
</li><li><p><span><span> 
</span></span>If the <b>ClientIpAddress</b> prefix for the input <b>ClientInfo</b>
parameter does not match any <b>DHCPv6Scope</b> object, return
ERROR_FILE_NOT_FOUND.</p>
</li><li><p><span><span> 
</span></span>If the <b>DHCPv6Scope.DHCPv6ClientInfo</b> object is not found
based on the <b>ClientIpAddress</b> prefix, return ERROR_FILE_NOT_FOUND.</p>
</li><li><p><span><span> 
</span></span>If <b>ClientDUID.Data</b> field of the <b>ClientInfo</b>
parameter is NULL or the <b>DataLength</b> field is 0, return
ERROR_INVALID_PARAMETER.</p>
</li><li><p><span><span> 
</span></span>If the <b>Datalength</b> field is greater than 256, return
ERROR_BUFFER_OVERFLOW.</p>
</li><li><p><span><span> 
</span></span>Fields of the <b>ClientInfo</b> parameter that are saved to the
retrieved <b>DHCPv6ClientInfo</b> object are <b>ClientDUID.Data</b>, <b>ClientDUID.DataLength</b>,
<b>ReservedAddress</b>, <b>IAID</b>, <b>ClientName</b>, and <b>ClientComment</b>.
All other fields of ClientInfo are neither used nor validated.</p>
</li></ul><p><b>Exceptions Thrown:</b> No exceptions are thrown beyond
those thrown by the underlying RPC protocol <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>.</p></div>