How can I detect, if my setup is startet in an Windows Terminal Server (WTS) Client window, or if it is startet on the server ?
I tried to check the computer names, but I didn't find any Windows API that returns the name of the computer on which the WTS client is running ? GetComputerName() always returns the name of the server...
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
1 reply to this topic
Posted 03 April 2002 - 23:46
To look for Terminal Server, you test the version first. Then you see if the operating system is version 4.0 or earlier by querying the Registry key for a value of "Terminal Server," found at "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions." For version 5 or higher, use the VerifyVersionInfo API call, which returns a value indicating the product suite.
Asaf Vishna[br]SmarTeam Corporation Ltd.[br]Email: AsafV@SmarTeam.com