<div class="content" name="RpcStartListener" uuid="e3aa6981-665a-4001-b5bc-996ba68c3f0e"><p>The RpcStartListener method starts the specified <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_ffff3f01-8c21-44d3-bbda-0062a1fbda4b" data-linktype="relative-path">Terminal
Services</a></span> <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_1e5aa0c2-4617-4d7a-969e-a7091c415c8d" data-linktype="relative-path">listener</a></span> on a <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_b416f72e-cf04-4d80-bf93-f5753f3b0998" data-linktype="relative-path">terminal
server</a></span>. This MUST be called after <span><a href="126bc7fa-9e64-4b7b-a78c-1a08895fb60a" data-linktype="relative-path">RpcOpenListener</a></span>.
The caller MUST have WINSTATION_RESET and WINSTATION_QUERY permissions to the
listener. The method checks whether the caller has WINSTATION_RESET and
WINSTATION_QUERY permission (section <span><a href="4507e852-be3d-45b6-bc47-8ca0b552c94d" data-linktype="relative-path">3.1.1</a></span>) by setting
it as the Access Request mask, and fails if the caller does not have the
permissions.</p><dl>
<dd>
<div><pre> HRESULT RpcStartListener(
   [in] HLISTENER hListener
 );
</pre></div>
</dd></dl><p><b>hListener: </b> The <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_5044babb-08e3-4bb9-bc12-fe8f542b05ee" data-linktype="relative-path">handle</a></span> to the
listener. This is of type <span><a href="c50c3e48-7a1d-4fb6-8934-1663a90cadff" data-linktype="relative-path">HLISTENER</a></span>.</p><p><b>Return Values: </b> The method MUST return S_OK
(0x00000000) on success; otherwise, it MUST return an implementation-specific
negative value.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>0x00000000 S_OK</td>
  <td>Successful completion.</td>
 </tr></tbody></table>
</dd></dl><p> </p></div>