<div class="content" name="RpcWinStationReInitializeSecurity" uuid="563daea7-5786-44f3-bf33-2d24e058856a"><p>The RpcWinStationReInitializeSecurity method reinitializes
security for all non-console <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_8cc89bb9-be94-4672-8a5d-9947b91bc952" data-linktype="relative-path">WinStations</a></span> (remote
connection protocols). <a id="Appendix_A_Target_202"></a><a aria-label="Product behavior note 202" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_202" data-linktype="relative-path">&lt;202&gt;</a>
Existing sessions will not be affected, but future sessions will have the new
security descriptor read from the registry applied to them. This method MUST be
called by processes running as SYSTEM or as an Administrator.<a id="Appendix_A_Target_203"></a><a aria-label="Product behavior note 203" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_203" data-linktype="relative-path">&lt;203&gt;</a></p><dl>
<dd>
<div><pre> BOOLEAN RpcWinStationReInitializeSecurity(
   [in] SERVER_HANDLE hServer,
   [out] DWORD* pResult
 );
</pre></div>
</dd></dl><p><b>hServer: </b>Handle to the server object. This is
of type <span><a href="49484cdf-2feb-4de9-a588-5d01cf8995dc" data-linktype="relative-path">SERVER_HANDLE</a></span>. The <i>hServer</i>
argument MUST be obtained from a previous call to <span><a href="fd6f339d-f5dd-452c-a9a9-ec753c22a36a" data-linktype="relative-path">RpcWinStationOpenServer</a></span>.</p><p><b>pResult: </b> If the call was successful, this
parameter MUST be STATUS_SUCCESS (0x00000000); otherwise, it MUST be an implementation-specific
negative value.</p><p><b>Return Values: </b> Returns TRUE if the call
succeeded, and FALSE if the method failed. On failure, pResult indicates the
failure status code.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x01 TRUE</td>
  <td>Successful completion.</td>
 </tr><tr>
  <td>0x00 FALSE</td>
  <td>Method call failed.</td>
 </tr></tbody></table>
</dd></dl><p> </p></div>