Detect is application is being run from TSPlus
-
- Posts: 13
- Joined: Thu Jan 31, 2013 9:08 am
Detect is application is being run from TSPlus
We have an application which is used both by local users and remote users using TSPlus (using html5). There are a couple of aspects that we need to customise when the application is being used from TSPlus, but I don't want to build two different versions so we need to be able to detect whether the application is running from TSPlus. Is there any way of doing this? If there isn't I suppose we could just check if TSPlus is installed.
Re: Detect is application is being run from TSPlus
Hello,
Maybe you could use environment variable %SESSIONNAME% for this purpose.
A session detected as logged to the console (client computer) will be labeled as "console" while a remote session will be flagged as “RDP-Tcp#XXX".
Maybe you could use environment variable %SESSIONNAME% for this purpose.
A session detected as logged to the console (client computer) will be labeled as "console" while a remote session will be flagged as “RDP-Tcp#XXX".
Olivier
TSplus support team administrator

TSplus support team administrator

Re: Detect is application is being run from TSPlus
Hi Steve.
You didn't specify which platform you use, but if it is .NET System.Windows.Forms.SystemInformation.TerminalServerSession will return True if running under TSplus.
Cheers.
Ivan
You didn't specify which platform you use, but if it is .NET System.Windows.Forms.SystemInformation.TerminalServerSession will return True if running under TSplus.
Cheers.
Ivan
-
- Posts: 13
- Joined: Thu Jan 31, 2013 9:08 am
Re: Detect is application is being run from TSPlus
Thanks. Using %SESSIONNAME% works well.
We are using .NET so I guess so I guess that System.Windows.Forms.SystemInformation.TerminalServerSession would be just as good.
We are using .NET so I guess so I guess that System.Windows.Forms.SystemInformation.TerminalServerSession would be just as good.