<div class="content" name="R_DhcpGetServerBindingInfoV6" uuid="42b4ca55-ecd8-4cba-8c14-03209d54426d"><p>The <b>R_DhcpGetServerBindingInfoV6</b> method retrieves the
array of IPv6 interface binding information for the DHCPv6 server. The caller
of this function can free the memory pointed to by <i>BindElementsInfo</i> by
calling the function <b>midl_user_free</b> (section <a href="a7e5f2d1-04b7-4363-bdc0-76a1099664eb" data-linktype="relative-path">3</a>).</p><dl>
<dd>
<div><pre> DWORD R_DhcpGetServerBindingInfoV6(
   [in, unique, string] DHCP_SRV_HANDLE ServerIpAddress,
   [in] ULONG Flags,
   [out] LPDHCPV6_BIND_ELEMENT_ARRAY* BindElementsInfo
 );
</pre></div>
</dd></dl><p><b>ServerIpAddress: </b>The IP address/host name of
the DHCP server. This parameter is unused.</p><p><b>Flags: </b>This flag is not used, and it MUST be
set to 0.</p><p><b>BindElementsInfo: </b>This is a pointer of type <a href="4c84ae9b-707a-480d-a176-3ebc5f113984" data-linktype="relative-path">LPDHCPV6_BIND_ELEMENT_ARRAY</a>
that points to the location in which the information about the IPv6 interface
binding is retrieved.</p><p><b>Return Values: </b>A 32-bit unsigned integer value
that indicates return status. A return value ERROR_SUCCESS (0x00000000)
indicates that the operation was completed successfully, else it contains a
Win32 error code, as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.
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>0x00000000 ERROR_SUCCESS</td>
  <td>The call was successful.</td>
 </tr></tbody></table>
</dd></dl><p>The opnum field value for this method is 69.</p><p>When processing this call, the DHCP server MUST do the
following:</p><ul><li><p><span><span> 
</span></span>Validate if this API is authorized for read access per section <a href="baec2112-1146-4c42-b77e-b706e170a590" data-linktype="relative-path">3.5.4</a>. If not, return the
error ERROR_ACCESS_DENIED.</p>
</li><li><p><span><span> 
</span></span>If <i>Flags</i> is not zero, return ERROR_INVALID_PARAMETER.</p>
</li><li><p><span><span> 
</span></span>Allocate memory for <i>BindElementsInfo</i> that is equal to the
size of data type <b>DHCPV6_BIND_ELEMENT_ARRAY</b>.</p>
</li><li><p><span><span> 
</span></span>Allocate memory for the number of <b>DHCPv6ServerBindingInfo</b>
elements in the server ADM element <b>DHCPv6ServerBindingInfoList</b>. Retrieve
each <b>DHCPv6ServerBindingInfo</b> object from the server ADM element <b>DHCPv6ServerBindingInfoList</b>,
and copy it into <i>BindElementsInfo</i>.</p>
</li><li><p><span><span> 
</span></span>Return ERROR_SUCCESS.</p>
</li></ul><p><b>Exceptions Thrown:</b> No exceptions are thrown beyond
those thrown by the underlying RPC protocol <a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a>.</p></div>