<div class="content" name="TS_COUNTER_HEADER" uuid="e08317cb-a693-40d3-9a5f-61e14cfdb431"><p>The <b>TS_COUNTER_HEADER</b> is the header of the <span><a href="c41d3367-04c9-4c93-babf-9b5de834eb29#gt_ffff3f01-8c21-44d3-bbda-0062a1fbda4b" data-linktype="relative-path">Terminal
Services</a></span> performance counter structure providing general information
on the counter.</p><dl>
<dd>
<div><pre> typedef struct _TS_COUNTER_HEADER {
   DWORD dwCounterID;
   boolean bResult;
 } TS_COUNTER_HEADER, *PTS_COUNTER_HEADER;
</pre></div>
</dd></dl><p><b>dwCounterID:</b>  The identifier of the
counter. Set by the caller of <span><a href="46f107c4-f090-4802-b6d8-c510cfcb9a93" data-linktype="relative-path">RpcWinStationGetTermSrvCountersValue</a></span>
to indicate the counter on which to retrieve data. This will be set to zero by
RpcWinStationGetTermSrvCountersValue if the <b>dwCounterId</b> isn&#39;t
recognized.</p><dl>
<dd>
<p>The following values for dwCounterId are supported.</p>
</dd>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>TERMSRV_TOTAL_SESSIONS 0x01</td>
  <td>Total number of sessions: Value will indicate the total number of reconnections to the server since startup.</td>
 </tr><tr>
  <td>TERMSRV_DISC_SESSIONS 0x02</td>
  <td>Number of disconnected sessions: Value will indicate the total number of disconnections from the server since startup.</td>
 </tr><tr>
  <td>TERMSRV_RECON_SESSIONS 0x03</td>
  <td>Number of reconnected sessions: Value will indicate the total number of all reconnected sessions that have existed on the server since startup.</td>
 </tr><tr>
  <td>TERMSRV_CURRENT_ACTIVE_SESSIONS 0x04</td>
  <td>Current number of active sessions: Value will indicate the current number of active sessions on the server.</td>
 </tr><tr>
  <td>TERMSRV_CURRENT_DISC_SESSIONS 0x05</td>
  <td>Current number of disconnected sessions: Value will indicate the current number of disconnected sessions on the server.</td>
 </tr><tr>
  <td>TERMSRV_PENDING_SESSIONS 0x06</td>
  <td>Current number of pending sessions: Value will indicate the current number of pending connections to the server.&lt;57&gt;</td>
 </tr><tr>
  <td>TERMSRV_SUCC_TOTAL_LOGONS 0x07</td>
  <td>Total number of successful logons: Value will indicate the total number of successful logons on the server, both locally and remotely.&lt;58&gt;</td>
 </tr><tr>
  <td>TERMSRV_SUCC_LOCAL_LOGONS 0x08</td>
  <td>Total number of successful local logons: Value will indicate the total number of successful local logons on the server.&lt;59&gt;</td>
 </tr><tr>
  <td>TERMSRV_SUCC_REMOTE_LOGONS 0x09</td>
  <td>Total number of successful remote logons: Value will indicate the total number of successful remote logons on the server.&lt;60&gt;</td>
 </tr><tr>
  <td>TERMSRV_SUCC_SESSION0_LOGONS 0x0A</td>
  <td>Total number of successful session 0 logons: Value will indicate the total number of successful connects on the server to session 0.&lt;61&gt;</td>
 </tr><tr>
  <td>TERMSRV_CURRENT_TERMINATING_SESSIONS 0x0B</td>
  <td>Number of terminating sessions: Value will indicate the current number of terminating sessions on the server.&lt;62&gt;</td>
 </tr><tr>
  <td>TERMSRV_CURRENT_LOGGEDON_SESSIONS 0x0C</td>
  <td>Number of logged on sessions: Value will indicate the current number of logged-on sessions on the server.&lt;63&gt;</td>
 </tr></tbody></table>
</dd></dl><p><b>bResult:</b>  Set to TRUE if counter
information is returned. Set to FALSE if counter data isn&#39;t being returned
because the counter ID being requested was unrecognized.</p></div>