<div class="content"><p> </p><p>The NetrDfsGetVersion method checks whether the <span><a href="1709f6a7-efb8-4ded-b7ae-5cee9ee36320#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a></span>
is a <span><a href="1709f6a7-efb8-4ded-b7ae-5cee9ee36320#gt_0b8086c9-d025-45b8-bf09-6b5eca72713e" data-linktype="relative-path">DFS</a></span>
server and if so, returns the DFS version. An implementation MAY<a id="Appendix_A_Target_127"></a><a aria-label="Product behavior note 127" href="ebb74ff2-abb1-4e1b-a76a-563a5cbbea9a#Appendix_A_127" data-linktype="relative-path">&lt;127&gt;</a> choose to support this
method.</p><dl>
<dd>
<div><pre> NET_API_STATUS NetrDfsGetVersion(
   [in, string, unique] SRVSVC_HANDLE ServerName,
   [out] DWORD* Version
 );
</pre></div>
</dd></dl><p><b>ServerName: </b>An <span><a href="5f8329ee-1965-4ea1-ad35-3b29fbb63232" data-linktype="relative-path">SRVSVC_HANDLE (section 2.2.1.1)</a></span>
pointer that identifies the server. The <span><a href="1709f6a7-efb8-4ded-b7ae-5cee9ee36320#gt_60e0e1fa-66fe-41e1-b5e3-ceab97e53506" data-linktype="relative-path">client</a></span> MUST map this
structure to an RPC binding handle (see <span><a href="https://go.microsoft.com/fwlink/?LinkId=89824" data-linktype="external">[C706]</a></span> sections
4.3.5 and 5.1.5.2). The server MUST ignore this parameter.</p><p><b>Version: </b>A pointer to a DWORD where the server
returns the DFS version.</p><p><b>Return Values: </b>The method returns 0x00000000
(NERR_Success) to indicate success; otherwise, it returns a nonzero error code.
The method can take 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>.</p><p>In response to a NetrDfsGetVersion message, the server
SHOULD<a id="Appendix_A_Target_128"></a><a aria-label="Product behavior note 128" href="ebb74ff2-abb1-4e1b-a76a-563a5cbbea9a#Appendix_A_128" data-linktype="relative-path">&lt;128&gt;</a> choose to perform no
processing and return an implementation-specific error code when this method is
called. If the server supports DFS, the server MAY return the DFS version
number that is in use on the server.</p><p>The <i>Version</i> parameter is a pointer to a DWORD. If the
server supports DFS, the server MUST set this parameter to an
implementation-specific<a id="Appendix_A_Target_129"></a><a aria-label="Product behavior note 129" href="ebb74ff2-abb1-4e1b-a76a-563a5cbbea9a#Appendix_A_129" data-linktype="relative-path">&lt;129&gt;</a> DFS
version number that the server supports.</p><p>The server MAY<a id="Appendix_A_Target_130"></a><a aria-label="Product behavior note 130" href="ebb74ff2-abb1-4e1b-a76a-563a5cbbea9a#Appendix_A_130" data-linktype="relative-path">&lt;130&gt;</a> enforce
security measures to verify that the server enforces these security measures
and that the caller has the required permissions to execute this call. If the
caller does not have the required credentials, the server SHOULD<a id="Appendix_A_Target_131"></a><a aria-label="Product behavior note 131" href="ebb74ff2-abb1-4e1b-a76a-563a5cbbea9a#Appendix_A_131" data-linktype="relative-path">&lt;131&gt;</a> fail the call.</p></div>