Skip to main content

[archive] Determining Terminal Services

  • March 12, 2008
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 11 March 2008]

I have a situation where I'm trying to determine if the operating system I am using is Terminal Services. I've been researching the best method and I see some Windows API functions I can call, but I was wondering if anyone else is already doing this and can recommend the best way.

Anyone have a suggestion for the best way to do this?

4 replies

[Migrated content. Thread originally posted on 11 March 2008]

I have a situation where I'm trying to determine if the operating system I am using is Terminal Services. I've been researching the best method and I see some Windows API functions I can call, but I was wondering if anyone else is already doing this and can recommend the best way.

Anyone have a suggestion for the best way to do this?
Is it to determine if the host OS is WTS capable or that your process is actually running as a WTS session?

[Migrated content. Thread originally posted on 11 March 2008]

I have a situation where I'm trying to determine if the operating system I am using is Terminal Services. I've been researching the best method and I see some Windows API functions I can call, but I was wondering if anyone else is already doing this and can recommend the best way.

Anyone have a suggestion for the best way to do this?
I am trying to determine if Terminal Services is installed. The reason is because I need to switch terminal services to "install" mode before automatically installing a third party application. I only want to do this if it's a Terminal Services system, however. So I'm not concerned about whether I'm on the console or remote, just that Terminal Services is installed.

[Migrated content. Thread originally posted on 11 March 2008]

I have a situation where I'm trying to determine if the operating system I am using is Terminal Services. I've been researching the best method and I see some Windows API functions I can call, but I was wondering if anyone else is already doing this and can recommend the best way.

Anyone have a suggestion for the best way to do this?
I am trying to determine if Terminal Services is installed. The reason is because I need to switch terminal services to "install" mode before automatically installing a third party application. I only want to do this if it's a Terminal Services system, however. So I'm not concerned about whether I'm on the console or remote, just that Terminal Services is installed.

[Migrated content. Thread originally posted on 11 March 2008]

I have a situation where I'm trying to determine if the operating system I am using is Terminal Services. I've been researching the best method and I see some Windows API functions I can call, but I was wondering if anyone else is already doing this and can recommend the best way.

Anyone have a suggestion for the best way to do this?
In that case you will have to resort to GetVersionEx and the tool function VerifyVersionInfo. Which unfortunately is not that easy to implement... But it is doable.