I have good resources on my website: http://www.clipboardextender.com It talks about the implementation of the clipboard viewer, common errors, do and dont.
Basically, the clipboard is an area of shared memory into which you copy data (for example, "copy", for example, in response to pressing Ctrl + C) and copy data from (aka "paste"). Data can be simultaneously presented in dozens of common formats and any number of formats defined by the programmer.
It is impossible to completely “copy” the clipboard and restore it, as it were, without affecting other programs and invoking a negative user interface. Look at “delayed rendering” to find out why and think about what happens when an Excel user copies 5000 rows x 255 columns to a spreadsheet and press Ctrl + V. Understand this and you will understand the magic (and pitfalls) of delayed rendering.
source share