Is there a way my program can determine when it\'s running on a Remote Desktop (Terminal Services)?
I\'d like to enable an \"inactivity timeout\" on the program when
Here's the C# managed code i use:
///
/// Indicates if we're running in a remote desktop session.
/// If we are, then you MUST disable animations and double buffering i.e. Pay your taxes!
///
///
///
public static Boolean IsRemoteSession
{
//This is just a friendly wrapper around the built-in way
get
{
return System.Windows.Forms.SystemInformation.TerminalServerSession;
}
}