<div class="content"><p> </p><p>The NetrDfsManagerInitialize method instructs the <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_3de8e640-501a-4b25-80a7-0ba769f3c0b9" data-linktype="relative-path">DFS
server</a></span> 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 <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_9c5903c1-1477-4181-b451-3ba1e34a0c0c" data-linktype="relative-path">Microsoft
Interface Definition Language (MIDL)</a></span> 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 <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_c305d0ab-8b94-461a-bd76-13b40cb8c4d8" data-linktype="relative-path">Unicode</a></span>
host name string of the <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_ac90b498-3ba4-48d6-bcd6-5495f1654671" data-linktype="relative-path">DFS root target</a></span>
server or <span><a href="a9bc4403-a862-48b9-b99b-1b44a887d177#gt_76a05049-3531-4abd-aec8-30e19954b4bd" data-linktype="relative-path">DC</a></span> 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 <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><tr>
  <td>
  <p>0x00000005</p>
  <p>ERROR_ACCESS_DENIED</p>
  </td>
  <td>
  <p>Permission to perform the operation was denied.</p>
  </td>
 </tr><tr>
  <td>
  <p>0x00000032</p>
  <p>ERROR_NOT_SUPPORTED</p>
  </td>
  <td>
  <p>Server does not support the requested operation.</p>
  </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>