HOW TO: Use Terminal Server APIs via Windows Scripting Host (299947)
The information in this article applies to:
- Microsoft Windows NT Server 4.0 Terminal Server Edition
- Microsoft Windows 2000 Server
This article was previously published under Q299947 SUMMARY
There is no interface for Windows Terminal Services APIs via the Windows Scripting Host or Active Server Pages (ASP). However, the existing APIs can be leveraged if they are implemented in a COM object (as documented in the Platform SDK). This article provides source code (Atlwts_source.exe) for a sample ATL COM object (Atlwts_2.dll) that implements the following Windows Terminal Services APIs:
WTSSendMessage
WTSQuerySessionInformation
WTSQueryUserConfig
WTSOpenServer
WTSEnumerateSessions
WTSFreeMemory
WTSCloseServer
WTSLogoffSession
This sample ATL COM object can be used from the Windows Scripting Host or from ASP, and a sample of each is included as well.
Modification Type: | Minor | Last Reviewed: | 8/9/2004 |
---|
Keywords: | kbdownload kbdownload kbfile KB299947 |
---|
|