<div class="content"><p> </p><p>The NetrDfsGetSupportedNamespaceVersion (Opnum 25) method is
used to determine the supported <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_e8de88fd-d760-46fa-ad77-76961fa20aea" data-linktype="relative-path">DFS metadata</a></span> version
number.<a id="Appendix_A_Target_78"></a><a aria-label="Product behavior note 78" href="3a466440-1ef6-4439-b4e2-be9eaddeb511#Appendix_A_78" data-linktype="relative-path">&lt;78&gt;</a></p><p>The NetrDfsGetSupportedNamespaceVersion (Opnum 25) method
has the following <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_9c5903c1-1477-4181-b451-3ba1e34a0c0c" data-linktype="relative-path">MIDL</a></span> syntax.</p><dl>
<dd>
<div><pre> NET_API_STATUS NetrDfsGetSupportedNamespaceVersion(
   [in] DFS_NAMESPACE_VERSION_ORIGIN Origin,
   [in, unique, string] NETDFS_SERVER_OR_DOMAIN_HANDLE pName,
   [out] PDFS_SUPPORTED_NAMESPACE_VERSION_INFO pVersionInfo
 );
</pre></div>
</dd></dl><p><b>Origin: </b>This parameter specifies the version
information requested.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>DFS_NAMESPACE_VERSION_ORIGIN_SERVER</p>
  <p>0x0001</p>
  </td>
  <td>
  <p>This specifies that the returned information MUST
  reflect the metadata versions supported by the server.</p>
  <p>Versions supported by the server can be higher (or
  lower) than those supported by the domain.</p>
  </td>
 </tr><tr>
  <td>
  <p>DFS_NAMESPACE_VERSION_ORIGIN_DOMAIN</p>
  <p>0x0002</p>
  </td>
  <td>
  <p>This specifies that the returned information MUST
  reflect the metadata versions supported by the domain schema of the domain to
  which the server is joined.</p>
  <p>Versions supported by the domain schema can be higher
  (or lower) than those supported by the server.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>pName: </b>The pointer to a null-terminated <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_c305d0ab-8b94-461a-bd76-13b40cb8c4d8" data-linktype="relative-path">Unicode</a></span>
string. The server MUST ignore the <i>pName</i> parameter.</p><p><b>pVersionInfo: </b>The pointer to a <span><a href="5195a9d6-c09b-4dc9-8167-8f921d8348e9" data-linktype="relative-path">DFS_SUPPORTED_NAMESPACE_VERSION_INFO</a></span>
structure to receive the DFS metadata version number determined.</p><p><b>Return Values: </b>The method MUST return 0 on
success and a nonzero error code on failure. The method can return any specific
error code value, as specified in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>
section <span><a href="../ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d" data-linktype="relative-path">2.2</a></span>.
The most common error codes are listed in the following table.</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>Successful completion.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>The standalone namespace version supported by a server can
be unaffected by the domain metadata schema. If this is the case, the server
MUST return a standalone DFS major and minor version of zero for the
DFS_NAMESPACE_VERSION_ORIGIN_DOMAIN query. In this case, the standalone DFS
capability field has no meaning and MUST also be zero.</p><p>The version number of the DFS metadata that can be used for
a new <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_6a3f0be9-b9b4-49df-9d1c-a3b89e4e9890" data-linktype="relative-path">DFS namespace</a></span>
depends on the following:</p><ul><li><p><span><span> 
</span></span>For <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_c37de1c8-4bd3-406f-ad8c-50c877666f91" data-linktype="relative-path">domain-based DFS namespaces</a></span>,
the version supported by the DFS metadata schema in use in the server&#39;s <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_b0276eb2-4e65-4cf1-a718-e0920a614aca" data-linktype="relative-path">domain</a></span>.</p>
</li><li><p><span><span> 
</span></span>The version supported by the server that is to host the <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_ac90b498-3ba4-48d6-bcd6-5495f1654671" data-linktype="relative-path">DFS root
target</a></span>.</p>
</li></ul><p>Thus, the version that can be used for creating a new DFS
namespace is the minimum version that the domain and the server support. </p><p>This method is useful in determining an appropriate version
number to pass to the <span><a href="f015b511-d56f-4e93-a106-879e93a5c200" data-linktype="relative-path">NetrDfsAddRootTarget</a></span>
method.</p></div>