Knowledge Base

Use ValidateProductSuite to Check for Terminal Server

Article ID: 186636

Article Last Modified on 11/1/2006


APPLIES TO


This article was previously published under Q186636

SUMMARY

You can check to see if your application is running in the Microsoft Windows NT Server 4.0, Terminal Server environment, by using the product suite concept that was added to Windows NT Server 4.0, Service Pack 3, built into Terminal Server.

A set of product suite application programming interfaces (APIs) will be added to the Win32 API suite starting with Windows 2000. Until then, you can use the function called, ValidateProductSuite, to determine whether a particular product suite has been installed. If Terminal Server is installed, the product suite registry entry will contain the string "Terminal Server."

Using the example function, a Windows Terminal Server can be detected with the following code:
   BOOl fIsHydra;
   fIsHydra = ValidateProductSuite( TEXT("Terminal Server") );
				
No Terminal Server 4.0 SDK is planned, although new APIs may be released in service packs.

Keywords: kbinfo KB186636