Click to Rate and Give Feedback
Terminal Services API Functions

The following functions are used with Terminal Services.

Function Description
ProcessIdToSessionId Retrieves the Terminal Services session associated with a specified process.
VirtualChannelClose Closes the client end of a virtual channel.
VirtualChannelEntry An application-defined entry point for the client-side DLL of an application that uses Terminal Services virtual channels.
VirtualChannelInit Initializes a client DLL's access to Terminal Services virtual channels.
VirtualChannelInitEvent An application-defined callback function that Terminal Services calls to notify the client DLL of virtual channel events.
VirtualChannelOpen Opens the client end of a virtual channel.
VirtualChannelOpenEvent An application-defined callback function that Terminal Services calls to notify the client DLL of events for a specific virtual channel.
VirtualChannelWrite Sends data from the client end of a virtual channel to a partner application on the server end.
WTSCloseServer Closes an open handle to a terminal server.
WTSConnectSession Connects a Terminal Services session to an existing session on the local computer.
WTSDisconnectSession Disconnects the logged-on user from the specified Terminal Services session without closing the session.
WTSEnumerateProcesses Retrieves information about the active processes on a specified terminal server.
WTSEnumerateSessions Retrieves a list of sessions on a specified terminal server.
WTSFreeMemory Frees memory allocated by a Terminal Services function.
WTSGetActiveConsoleSessionId Retrieves the Terminal Services session currently attached to the physical console.
WTSLogoffSession Logs off a specified Terminal Services session.
WTSOpenServer Opens a handle to the specified terminal server.
WTSQuerySessionInformation Retrieves session information for the specified session on the specified terminal server.
WTSQueryUserConfig Retrieves configuration information for the specified user on the specified domain controller or terminal server.
WTSQueryUserToken Retrieves the primary access token of the logged-on user specified by the session ID.
WTSRegisterSessionNotification Registers the specified window to receive session change notifications.
WTSRegisterSessionNotificationEx Registers the specified window to receive session change notifications on local or remote servers.
WTSSendMessage Displays a message box on the client desktop of a specified Terminal Services session.
WTSSetUserConfig Modifies configuration information for the specified user on the specified domain controller or terminal server.
WTSShutdownSystem Shuts down (and optionally restarts) the specified terminal server.
WTSStartRemoteControlSession Starts the remote control of another Terminal Services session.
WTSStopRemoteControlSession Stops a remote control session.
WTSTerminateProcess Terminates the specified process on the specified terminal server.
WTSUnRegisterSessionNotification Unregisters the specified window from receiving session change notifications.
WTSUnRegisterSessionNotificationEx Unregisters the specified window from receiving session change notifications from the specified server.
WTSVirtualChannelClose Closes an open virtual channel handle.
WTSVirtualChannelOpen Opens a handle to the server end of a specified virtual channel.
WTSVirtualChannelPurgeInput Deletes all queued input data sent from the client to the server on a specified virtual channel.

Note  This function currently is not used by Terminal Services.

WTSVirtualChannelPurgeOutput Deletes all queued output data sent from the server to the client on a specified virtual channel.

Note  This function currently is not used by Terminal Services.

WTSVirtualChannelQuery Returns information about a specified virtual channel.
WTSVirtualChannelRead Reads data from the server end of a virtual channel.
WTSVirtualChannelWrite Writes data to the server end of a virtual channel.
WTSWaitSystemEvent Waits for a Terminal Services event before returning to the caller.

Send comments about this topic to Microsoft

Build date: 8/7/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker