3.3.4.1.12 RpcGetSessionCounters (Opnum 11)
The RpcGetSessionCounters method returns the various performance counters associated with the terminal server. No special permissions are required to call this method.
-
HRESULT RpcGetSessionCounters( [in] handle_t hBinding, [in, out, size_is(uEntries)] PTS_COUNTER pCounter, [in] ULONG uEntries );
hBinding: The RPC binding handle. For more information, see [MSDN-RPCBIND].
pCounter: An array of TS_COUNTER structures. The caller MUST set the dwCounterId field in the TS_COUNTER structures for each entry in the array to indicate the counter whose current value to retrieve. On return, the method MUST set the value for that performance counter. If the performance counter ID is not recognized or is not supported, the method will set the bResult field to 0.
uEntries: The number of performance counters to query. Indicates the size of the array pointed to by the pCounter parameter.
Return Values: The method MUST return S_OK (0x00000000) on success; otherwise, it MUST return an implementation-specific negative value.
-
Return value/code
Description
0x00000000
S_OK
Successful completion.