Implementing scriptable virtual channels by using Remote Desktop Web Connection
The following procedure and code examples show the steps for implementing scriptable virtual channels with Remote Desktop Web Connection. The examples were written in Visual Basic Scripting Edition and assume that the Remote Desktop ActiveX control is named "MsRdpClient".
To create and deploy scriptable virtual channels
- Deploy the server side of the application and make sure it is running on the Remote Desktop Session Host (RD Session Host) server. For information about deploying virtual channels applications on the server, see Virtual Channel Server Application.
- In your client script, call
IMsTscAx::CreateVirtualChannels, passing a string that contains a comma-separated list of virtual channel names.
For information about virtual channel naming restrictions, see Virtual Channel Client Registration.
- Call IMsTscAx::Connect to create your Remote Desktop Services connection.
- Use the IMsTscAx::SendOnVirtualChannel method to send data to the server, passing a string that contains the virtual channel name and a second string that contains the data to be passed.
- Receive data from the server on the IMsTscAxEvents::OnChannelReceivedData event.
Build date: 10/26/2012