Jump to content


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.
Photo

Terminal Server


1 reply to this topic

ragi

ragi
  • Members
  • 75 posts

Posted 02 April 2002 - 11:55

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...

Thanks,
Rainer

Asaf Vishna

Asaf Vishna
  • Members
  • 6 posts

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