471,624 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,624 software developers and data experts.

Detect if running in terminal server session

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
2 3916
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
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.

Similar topics

5 posts views Thread by Sara_S | last post: by
2 posts views Thread by Kevin Hodgson | last post: by
9 posts views Thread by Tim | last post: by
6 posts views Thread by Smokey Grindle | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.