Search code examples
c#.netclipboardclipboard-interaction

How can I bind to global clipboard events in .Net?


I need to make a simple service application that will bind to the Windows clipboard. Specifically, any time a copy/cut operation takes place I want to analyze the content and under certain conditions do something with the data.

I know that clipboard managers exist but, from what I gather, they use old COM APIs.

I'm not afraid of COM dll calls but I'm curious, is there a way to do this in pure .Net or do I still need to register a clipboard listener using COM?


Solution

  • Then this is all new I can see

    http://msdn.microsoft.com/en-us/library/windows/apps/br205867.aspx#events

    and I think this is strictly Windows 8