Terminal Services Vs RDP

pts.
Tags:
Desktops
Management
Microsoft Windows
OS
Security
Servers
SQL Server
From my application, I would like to know if I'm running under Terminal Services or Remote Desktop. If I use; GetSystemMetrics(SM_REMOTESESSION) I get "true" in both environments (TS and RDP). I would like to differentiate between the two as I don't want my APP running under TS but allow it under RDP. My app is being written in C/C++. Thanks for your help...

Answer Wiki

Thanks. We'll let you know when a new response is added.

I think you are going to be out of luck on this one. TS and RD are the same thing to the OS. Full TS is available on servers and RD is available on WindowsXP only. What I would do is check for the version of OS and not what type of TS you are running. If your system call returns a TS type environment, then check for the OS type. If it is XP Pro, then you are on RD, if it is Windows 2000 Server or Server 2003, then you are in full TS.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following