<div class="content" name="NetrDfsManagerInitialize" uuid="acac73a4-444a-499d-a24d-8e4c40f9890f"><p>The NetrDfsManagerInitialize method instructs the <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_3de8e640-501a-4b25-80a7-0ba769f3c0b9" data-linktype="relative-path">DFS server</a> to discard its
current state and reinitialize itself from its stored configuration settings.
The server SHOULD<a id="Appendix_A_Target_35"></a><a aria-label="Product behavior note 35" href="3a466440-1ef6-4439-b4e2-be9eaddeb511#Appendix_A_35" data-linktype="relative-path">&lt;35&gt;</a> choose to implement this
method.</p><p>The NetrDfsManagerInitialize method has the following <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_9c5903c1-1477-4181-b451-3ba1e34a0c0c" data-linktype="relative-path">Microsoft Interface Definition
Language (MIDL)</a> syntax.</p><dl>
<dd>
<div><pre> NET_API_STATUS NetrDfsManagerInitialize(
   [in, string] WCHAR* ServerName,
   [in] DWORD Flags
 );
</pre></div>
</dd></dl><p><b>ServerName: </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> host name string of
the <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_ac90b498-3ba4-48d6-bcd6-5495f1654671" data-linktype="relative-path">DFS root target</a>
server or <a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_76a05049-3531-4abd-aec8-30e19954b4bd" data-linktype="relative-path">DC</a> where the DFS
service is to be reinitialized.</p><p><b>Flags: </b>This parameter MUST be zero.</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><tr>
  <td>0x00000005 ERROR_ACCESS_DENIED</td>
  <td>Permission to perform the operation was denied.</td>
 </tr><tr>
  <td>0x00000032 ERROR_NOT_SUPPORTED</td>
  <td>Server does not support the requested operation.</td>
 </tr></tbody></table>
</dd></dl><p>If this method is implemented, the DFS server SHOULD<a id="Appendix_A_Target_36"></a><a aria-label="Product behavior note 36" href="3a466440-1ef6-4439-b4e2-be9eaddeb511#Appendix_A_36" data-linktype="relative-path">&lt;36&gt;</a> discard its current state and
reinitialize itself from its stored configuration settings.</p></div>