Terminal Services Shared Clipboard
Saturday, 18 November 2006 by Michel Roth
The TS Team has blogged about troubleshooting the shared clipboard: "The TS shared clipboard allows you to copy and paste data between local and remote sessions. When it works its really simple and seamless, but what about when it doesn’t? Diagnosing clipboard problems can be hard and frustrating!

The majority of clipboard problems fall into the category of clipboard viewer chain related issues. What is the clipboard viewer chain? Essentially it is a collection of applications which are interested in being notified of updates to the local clipboard. Applications which have registered to be a part of the viewer chain receive a notification whenever the clipboard has been updated. However, there is a major caveat! The clipboard viewer chain is application-controlled. This means that applications in the chain are responsible for:

• Passing on notification messages to the next viewer in the chain
• Removing other applications from the chain

In Vista and Longhorn Server (LHS) our friends in USER32 added some new system APIs which implement a system-controlled viewer chain. No longer do applications have to contend with managing the chain! The system now maintains a list of applications which want to be notified of updates to the clipboard, and when the clipboard is updated, the system goes and tells each one that the clipboard contents have changed.

Since the new clipboard APIs are only available on Vista and above, you have to be running the TS client on Vista and connecting to a Vista (or Windows Server Codenamed Longhorn) machine to get the full benefits of the new behavior. If you are connecting to a Vista machine from an XP box, then the local clipboard viewer chain is still subject to breakage, while the remote clipboard viewer chain (of which RDPCLIP is a part) will be more reliable and remain intact. Hence your remote-to-local copy and paste operations should always work, while the local-to-remote could still break (due to the local clipboard chain being application-controlled)."

Read the entire article here.

Related Items:

The Citrix Clipboard (Part I and II) (30 May 2007)
Troubleshooting Client Clipboard Issues (31 January 2006)
Alt-Printscreen Does Not Work In A Non-seamless Session (19 January 2006)
Windows Vista Event Viewer Changes (2 May 2006)
Citrix ICA Client X 7.00.407 (Mac) (22 January 2006)
Windows Desktop Sharing API (9 March 2007)
Bandwidth Allocation For Terminal Server Connections Over RDP (10 April 2007)
Neoware Management Appointments (12 February 2007)
How To Make A Real Time CDF Trace Using The CDF Viewer (CdfView.exe) (14 December 2005)
Common Diagnostics Facility Viewer (CDF Viewer) Updated (28 October 2005)
Comments (0)