资 源 简 介
Cassia is a .NET library for accessing the native Windows Terminal Services API (now the Remote Desktop Services API). It can be used from C#, Visual Basic.NET, or any other .NET language.
What can I do with it?
Cassia supports the following operations on both local and remote terminal servers:
* Enumerating terminal sessions and reporting session information including connection state, user name, client name, client display details, client-reported IP address, and client build number (WTSEnumerateSessions, WTSQuerySessionInformation, and friends)
* Logging off a session (WTSLogoffSession)
* Disconnecting a session (WTSDisconnectSession)
* Displaying a message box in a session and getting a response from the user (WTSSendMessage)
* Enumerating all processes (WTSEnumerateProcesses)
* Killing a process (WTSTerminateProcess)
* Shutting down or rebooting the server (WTSShutdownSystem)
In addition, Cassia supports enumerating all terminal servers on a domain (WTSEnume