<div class="content" name="NetrDfsGetSupportedNamespaceVersion" uuid="7c34ae60-9d4d-46b5-b2e1-e8ca09ac4d10"><p>The NetrDfsGetSupportedNamespaceVersion (Opnum 25) method is
used to determine the supported <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_e8de88fd-d760-46fa-ad77-76961fa20aea" data-linktype="relative-path">DFS metadata</a> 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 <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_9c5903c1-1477-4181-b451-3ba1e34a0c0c" data-linktype="relative-path">MIDL</a>
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>DFS_NAMESPACE_VERSION_ORIGIN_SERVER 0x0001</td>
  <td>This specifies that the returned information MUST reflect the metadata versions supported by the server. Versions supported by the server can be higher (or lower) than those supported by the domain.</td>
 </tr><tr>
  <td>DFS_NAMESPACE_VERSION_ORIGIN_DOMAIN 0x0002</td>
  <td>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. Versions supported by the domain schema can be higher (or lower) than those supported by the server.</td>
 </tr></tbody></table>
</dd></dl><p><b>pName: </b>The pointer to a null-terminated <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_c305d0ab-8b94-461a-bd76-13b40cb8c4d8" data-linktype="relative-path">Unicode</a> string. The server
MUST ignore the <i>pName</i> parameter.</p><p><b>pVersionInfo: </b>The pointer to a <a href="5195a9d6-c09b-4dc9-8167-8f921d8348e9" data-linktype="relative-path">DFS_SUPPORTED_NAMESPACE_VERSION_INFO</a>
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 <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d" data-linktype="relative-path">2.2</a>.
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>0x00000000 ERROR_SUCCESS</td>
  <td>Successful completion.</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 <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_6a3f0be9-b9b4-49df-9d1c-a3b89e4e9890" data-linktype="relative-path">DFS namespace</a>
depends on the following:</p><ul><li><p><span><span> 
</span></span>For <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_c37de1c8-4bd3-406f-ad8c-50c877666f91" data-linktype="relative-path">domain-based
DFS namespaces</a>, the version supported by the DFS metadata schema in use in
the server&#39;s <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_b0276eb2-4e65-4cf1-a718-e0920a614aca" data-linktype="relative-path">domain</a>.</p>
</li><li><p><span><span> 
</span></span>The version supported by the server that is to host the <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_ac90b498-3ba4-48d6-bcd6-5495f1654671" data-linktype="relative-path">DFS root target</a>.</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 <a href="f015b511-d56f-4e93-a106-879e93a5c200" data-linktype="relative-path">NetrDfsAddRootTarget</a>
method.</p></div>