次の方法で共有


Virtual Channel Server Application (Windows CE 5.0)

Send Feedback

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.

For more information about these functions, see this Microsoft Web site.

See Also

Implementing Virtual Channels

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.