Idle time in a T.S. session - how to get it?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chuck Chopp (ChuckChopp_at_rtfmcsi.com)
Date: 05/05/04


Date: Wed, 05 May 2004 12:23:04 -0400

The documented information classes for WTSQuerySessionInformation() do not
allow for the idle time for a session to be retrieved. However, the
Terminal Services Manager is capable of retrieving & displaying this
information for each session.

Is there an undocumented information class that can be used to obtain this
information, or else perhaps a different API function [possibly undocumented]?

I did some Google searches on "WTSQuerySessionInformation" and "idle" and
did not come up with anything other than a few other previous posts asking
the same question.

TIA,

Chuck

-- 
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc.     864 801 2795 voice & voicemail
103 Autumn Hill Road              864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.


Relevant Pages

  • Re: Session object gone!
    ... Are you sure you're retrieving any data? ... If you retrive Nothing, and store ... it in Session, you will get the result you've described. ... > When I return to the calling routine my Session object is gone!! ...
    (microsoft.public.dotnet.framework.aspnet)
  • Querying a TS session & getting the real client address
    ... communicate with the TS server is not shown, and the client's IP address, ... in use on a RDP or ICA session on a TS/Citrx server? ... TCP connection, but I'd still need a way to match up a particular TCP ... Chuck Chopp ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Delay in IMAPIAdviseSink::onNotify
    ... Do you share the session by calling MAPILogonEx or by retrieving ... Did you try to cause an RPC by retrieving PT_TEST_LINE_SPEED property from ... Do you mean "delay", ie your OnNotify method gets called some time after ... So that I have some question: Is it stupid to combine MAPI calls and OOM ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Session object gone!
    ... > Are you sure you're retrieving any data? ... If you retrive Nothing, and store ... > it in Session, you will get the result you've described. ... >> When I return to the calling routine my Session object is gone!! ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How secure are session variables?
    ... session variables are not something people can get ... pull it out as you need it, retrieving it each time from scratch. ... However this still isn't secure ...
    (microsoft.public.dotnet.framework.aspnet)