Click or drag to resize
Xcalibur Systems LLC Logo

TerminalServicesHelper Class

Win32 API Helper: Terminal Services
Inheritance Hierarchy
SystemObject
  Xcalibur.NativeMethods.V2.TerminalServicesTerminalServicesHelper

Namespace: Xcalibur.NativeMethods.V2.TerminalServices
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
public static class TerminalServicesHelper

The TerminalServicesHelper type exposes the following members.

Methods
 NameDescription
Public methodStatic memberWTSCloseServer Closes an open handle to a Remote Desktop Session Host (RD Session Host) server.

WTSCloseServer function

Public methodStatic memberWTSDisconnectSession Disconnects the logged-on user from the specified Remote Desktop Services session without closing the session. If the user subsequently logs on to the same Remote Desktop Session Host (RD Session Host) server, the user is reconnected to the same session.

WTSDisconnectSession function

Public methodStatic memberWTSEnumerateSessionsEx Retrieves a list of sessions on a specified Remote Desktop Session Host (RD Session Host) server or Remote Desktop Virtualization Host (RD Virtualization Host) server.

WTSEnumerateSessionsEx function

Public methodStatic memberWTSFreeMemory Frees memory allocated by a Remote Desktop Services function.

WTSFreeMemory function

Public methodStatic memberWTSGetActiveConsoleSessionId Retrieves the session identifier of the console session. The console session is the session that is currently attached to the physical console. Note that it is not necessary that Remote Desktop Services be running for this function to succeed.

WTSFreeMemory function

Public methodStatic memberWTSLogoffSession Logs off a specified Remote Desktop Services session.

WTSLogoffSession function

Public methodStatic memberWTSOpenServer Opens a handle to the specified Remote Desktop Session Host (RD Session Host) server.

WTSOpenServer function

Public methodStatic memberWTSQuerySessionInformation Retrieves session information for the specified session on the specified Remote Desktop Session Host (RD Session Host) server. It can be used to query session information on local and remote RD Session Host servers.

WTSQuerySessionInformation function

Public methodStatic memberWTSSendMessage Displays a message box on the client desktop of a specified Remote Desktop Services session.

WTSSendMessage function

Public methodStatic memberWTSShutdownSystem Shuts down (and optionally restarts) the specified Remote Desktop Session Host (RD Session Host) server.

WTSShutdownSystem function

Top
See Also