Use ValidateProductSuite to Check for Terminal Server (186636)



The information in this article applies to:

  • Microsoft Windows NT Server 4.0 Terminal Server Edition

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.

Modification Type:MajorLast Reviewed:6/30/2004
Keywords:kbinfo KB186636