<div class="content" name="RpcWinStationReadRegistry" uuid="5d74a6b0-79fd-4091-a2eb-4974131b4ea4"><p>The RpcWinStationReadRegistry method tells the <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_b416f72e-cf04-4d80-bf93-f5753f3b0998" data-linktype="relative-path">terminal
server</a></span> to reread, from the registry, the configuration data for all
the <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_8cc89bb9-be94-4672-8a5d-9947b91bc952" data-linktype="relative-path">WinStations</a></span>,
and to update the memory locations where this data was stored with the values
read from the registry.<a id="Appendix_A_Target_189"></a><a aria-label="Product behavior note 189" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_189" data-linktype="relative-path">&lt;189&gt;</a> The
caller of this <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a></span> method MUST be
running either as <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_3f2baf2c-3e0b-4764-b7a5-54cebabeb85a" data-linktype="relative-path">SYSTEM</a></span> or as an
Administrator.<a id="Appendix_A_Target_190"></a><a aria-label="Product behavior note 190" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_190" data-linktype="relative-path">&lt;190&gt;</a></p><dl>
<dd>
<div><pre> BOOLEAN RpcWinStationReadRegistry(
   [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>.
hServer 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), as specified in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>;
otherwise, it MUST be an implementation-specific negative value.</p><p><b>Return Values: </b> Returns TRUE if the call
succeeded, or FALSE if the method failed. On failure, <i>pResult</i> 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>