PC Review


Reply
Thread Tools Rate Thread

Detect if running in terminal server session

 
 
Oenone
Guest
Posts: n/a
 
      24th Mar 2005
Is it possible to detect whether my application is running within a Terminal
Server session or not?

I'd like to automatically switch off some of my graphics rendering under
this environment as they can be quite slow to transfer over a terminal
server session. The graphics should still be displayed when running directly
on a local session.

Thanks,

--

(O)enone


 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      25th Mar 2005

>Is it possible to detect whether my application is running within a Terminal
>Server session or not?


GetSystemMetrics(SM_REMOTESESSION)

http://msdn.microsoft.com/library/en...temmetrics.asp



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
Oenone
Guest
Posts: n/a
 
      25th Mar 2005
Mattias Sjögren wrote:
>> Is it possible to detect whether my application is running within a
>> Terminal Server session or not?

>
> GetSystemMetrics(SM_REMOTESESSION)
> http://msdn.microsoft.com/library/en...temmetrics.asp


Brilliant -- thanks very much.

--

(O) e n o n e


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can my application detect if it is running in a Terminal Services client session? Alek Luchnikov Microsoft Access 1 13th Feb 2008 04:15 PM
How can my application detect if it is running in a Terminal Services client session? Alek Luchnikov Microsoft Access Getting Started 0 13th Feb 2008 12:36 PM
detect if running on a terminal server Smokey Grindle Microsoft VB .NET 6 7th Aug 2006 06:46 PM
Detect if running under Terminal Server? Kevin Hodgson Microsoft VB .NET 2 9th Jul 2004 10:00 PM
Writing Session Specific Code For Windows 2003 Terminal Server Session OHM Microsoft VB .NET 8 27th May 2004 10:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:44 AM.