473,787 Members | 2,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

detect if running on a terminal server

is there any way to detect if yoru app is runnign on a terminal server in
..net? so we can slim down graphics and such for it? thanks!
Jul 17 '06 #1
6 1815
Smokey Grindle wrote:
is there any way to detect if yoru app is runnign on a terminal server in
.net? so we can slim down graphics and such for it? thanks!

I just set a command line parameter that I would launch whenever I
launched from a terminal server.

Program.Exe /TS

Then I would lower the graphics.

Chris
Jul 17 '06 #2

If Terminal Server is installed, the product suite registry entry will
contain the string "Terminal Server."

regards

Michel Posseth [MCP]

"Smokey Grindle" wrote:
is there any way to detect if yoru app is runnign on a terminal server in
..net? so we can slim down graphics and such for it? thanks!
Jul 17 '06 #3
I'm sorry but I dont have a clue where the product suite registry entry is,
I searched the registery for "Terminal Server" but found nothing that isnt
also in my standard XP workstation registry also....

"Michel Posseth [MCP]" <Mi************ **@discussions. microsoft.comwr ote in
message news:6D******** *************** ***********@mic rosoft.com...
>
If Terminal Server is installed, the product suite registry entry will
contain the string "Terminal Server."

regards

Michel Posseth [MCP]

"Smokey Grindle" wrote:
>is there any way to detect if yoru app is runnign on a terminal server in
..net? so we can slim down graphics and such for it? thanks!

Aug 7 '06 #4
Well it sure should be there ,

to be more specific here

HKEY_LOCAL_MACH INE\\System\\Cu rrentControlSet \\Control\\Prod uctOptions

Here you can find detailed info ( source however is in C++ )
regards

Michel Posseth [MCP]


"Smokey Grindle" wrote:
I'm sorry but I dont have a clue where the product suite registry entry is,
I searched the registery for "Terminal Server" but found nothing that isnt
also in my standard XP workstation registry also....

"Michel Posseth [MCP]" <Mi************ **@discussions. microsoft.comwr ote in
message news:6D******** *************** ***********@mic rosoft.com...

If Terminal Server is installed, the product suite registry entry will
contain the string "Terminal Server."

regards

Michel Posseth [MCP]

"Smokey Grindle" wrote:
is there any way to detect if yoru app is runnign on a terminal server in
..net? so we can slim down graphics and such for it? thanks!


Aug 7 '06 #5


sorry forgot to paste the link
http://www.microsoft.com/technet/pro.../tsappdev.mspx

"Michel Posseth [MCP]" wrote:
Well it sure should be there ,

to be more specific here

HKEY_LOCAL_MACH INE\\System\\Cu rrentControlSet \\Control\\Prod uctOptions

Here you can find detailed info ( source however is in C++ )
regards

Michel Posseth [MCP]


"Smokey Grindle" wrote:
I'm sorry but I dont have a clue where the product suite registry entry is,
I searched the registery for "Terminal Server" but found nothing that isnt
also in my standard XP workstation registry also....

"Michel Posseth [MCP]" <Mi************ **@discussions. microsoft.comwr ote in
message news:6D******** *************** ***********@mic rosoft.com...
>
If Terminal Server is installed, the product suite registry entry will
contain the string "Terminal Server."
>
regards
>
Michel Posseth [MCP]
>
>
>
"Smokey Grindle" wrote:
>
>is there any way to detect if yoru app is runnign on a terminal server in
>..net? so we can slim down graphics and such for it? thanks!
>>
>>
>>
Aug 7 '06 #6
ah ok found it now thanks!

"Michel Posseth [MCP]" <Mi************ **@discussions. microsoft.comwr ote in
message news:E1******** *************** ***********@mic rosoft.com...
Well it sure should be there ,

to be more specific here

HKEY_LOCAL_MACH INE\\System\\Cu rrentControlSet \\Control\\Prod uctOptions

Here you can find detailed info ( source however is in C++ )
regards

Michel Posseth [MCP]


"Smokey Grindle" wrote:
>I'm sorry but I dont have a clue where the product suite registry entry
is,
I searched the registery for "Terminal Server" but found nothing that
isnt
also in my standard XP workstation registry also....

"Michel Posseth [MCP]" <Mi************ **@discussions. microsoft.comwr ote
in
message news:6D******** *************** ***********@mic rosoft.com...
>
If Terminal Server is installed, the product suite registry entry will
contain the string "Terminal Server."

regards

Michel Posseth [MCP]

"Smokey Grindle" wrote:

is there any way to detect if yoru app is runnign on a terminal server
in
..net? so we can slim down graphics and such for it? thanks!



Aug 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2483
by: Chung Ley | last post by:
Hi I am having problem running an .net application on a Windows2000 Terminal Server. The application seems to work fine on user's desktop The issues that I have with running the application on the Terminal Server are 1. When exiting the application, I got the following error dialog box Title: .Net-BroadcastEventWindow.1.0.5000.0.5:MyExecutable.exe - Application Erro Message: The instruction at "0x77f8910e" referenced memory at...
1
4630
by: Zen | last post by:
From http://support.microsoft.com/kb/828956/ "Note Microsoft does not support the use of multiple versions of Microsoft Office on a Terminal Server. Coexistence is not supported on versions of Windows that are running Terminal Services. If you have to run multiple versions of Office, disable Terminal Services" The problem:
3
1820
by: Patrick Fisher | last post by:
What are the implications of running a MS-Access BE and an SQL-Server BE on the same Terminal Server? Assuming that the TS can handle the load are there any other issues? Thanks Patrick
2
1859
by: Kevin Hodgson | last post by:
Is there any way in a .NET App to detect if it is being run under Terminal Server? I have some functions of my program (like launching emails, and saving files) that need to be handled differently if the user is running it locally, or if they're running under Terminal Server.
2
4084
by: Oenone | last post by:
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,
9
13237
by: Tim | last post by:
Hi Guys, I was wondering if there is a way to detect from with a C# app if it is being started in a remote session? i.e. someone has connected via remote desktop or terminal services... Thanks Tim
7
2781
by: Rob | last post by:
I do not want multiple instances of a vb.net program running concurrently... How may I detect this ? Thanks
2
8582
by: Hitesh | last post by:
Hi, I need code in VB.Net to detect if the application is running on Terminal Server. I am using the following code. Please let me know if you see any issues in it or if you have some better code to achieve this functionality: Dim sTemp As String = Environment.GetEnvironmentVariable("SESSIONNAME") Dim IsTSSession As String If (sTemp <> "") And (sTemp.IndexOf("RDP-") = 0) Then IsTSSession = True
11
2012
by: John Sheppard | last post by:
Hello there, I am running a webservice on IIS6, sometimes it runs at a reasonable speed, sometimes it runs painfully slow and sometimes inbetween. The application that consumes the service is vb.dotnet and runs on a local area network. Does anyone have any ideas? Where should I start to look? What could be causing this? Thank you for any help or ideas
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.