Virtual Channel Server Application
The component of an application that uses virtual channels must be a user-mode application running in a client session on the Terminal server. You must provide a method to start the server application. There are several ways to do this, such as a logon script, or a program or script in the Startup folder. Or the user could launch the application.
You must store the name of the virtual channel server application in the registry by adding a subkey under the following location.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\Addins
The server application calls WTSVirtualChannelOpen to obtain a handle to a virtual channel. The application can then use the handle with any of the following functions.
Function | Description |
---|---|
WTSVirtualChannelClose | Closes an open virtual channel handle. |
WTSVirtualChannelPurgeInput | Purges all queued input data sent from the client to the server on a specific virtual channel. |
WTSVirtualChannelPurgeOutput | Purges all queued output data sent from the server to the client on a specific virtual channel. |
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. |
See Also
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.