By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,161 Members | 1,287 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,161 IT Pros & Developers. It's quick & easy.

Detect if running in terminal server session

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
Nov 21 '05 #2

P: n/a
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
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.