For a small utility I am writing (.NET, C#), I want to monitor clipboard copy operations and clipboard paste operations.

My idea is to provide my own data when pasting into an arbitrary application.

The monitoring of a copy operation can be easily done by using a clipboard viewer.

Something that seems much more advanced to me is to write a "clipboard paste provider":

  • Answer to "what formats are available" queries of applications.
  • Supply data to application paste operations.

I found this posting and this posting, but none of them seems to really help me.

What I guess is that I somehow have to mimic/hijack the current clipboard.

Question:

Is it possible to "wrap" the clipboard in terms of paste operations and provide my own kind of "clipboard proxy"?

Edit
Report