<div class="content" name="RpcWinStationIsHelpAssistantSession" uuid="113108ba-2939-435e-a14f-d45414b8ad91"><p>The RpcWinStationIsHelpAssistantSession method determines if
a session is created by the built-in HelpAssistant user account.<a id="Appendix_A_Target_209"></a><a aria-label="Product behavior note 209" href="7ce7f717-461b-4f18-9829-6690168c7707#Appendix_A_209" data-linktype="relative-path">&lt;209&gt;</a> The caller is not required to
have any specific permission to call this method.</p><dl>
<dd>
<div><pre> BOOLEAN RpcWinStationIsHelpAssistantSession(
   [in] SERVER_HANDLE hServer,
   [out] DWORD* pResult,
   [in] ULONG SessionId
 );
</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> Failure error code if the call to
RpcWinStationIsHelpAssistantSession failed. If no error was encountered while
executing the call, this parameter MUST be STATUS_SUCCESS (0x00000000).</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>STATUS_SUCCESS 0x00000000</td>
  <td>The call was executed successfully.</td>
 </tr><tr>
  <td>STATUS_UNSUCCESSFUL 0xC0000001</td>
  <td>Execution of the call failed.</td>
 </tr><tr>
  <td>STATUS_CTX_WINSTATION_NOT_FOUND 0xC00A0015</td>
  <td>The SessionId does not exist.</td>
 </tr><tr>
  <td>STATUS_WRONG_PASSWORD 0xC000006A</td>
  <td>This is a Help Assistant session but the help assistance ticket associated with the session is no longer valid.</td>
 </tr></tbody></table>
</dd></dl><p><b>SessionId: </b>The ID of the session to check.</p><p><b>Return Values: </b> Returns TRUE if the session is
running as HelpAssistant, and FALSE if this is not a HelpAssistant session or
if an error was encountered during the test. 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>