0
Reply

New to C# -- Help me write a hook?

L

L

Jun 22 2010 12:22 PM
2.1k

Hello,
I'm new to C# and writing a program which tracks the changes a user makes to a document. I'm aware of a "track changes" function in Microsoft Word, but I need more detail for this project.
The program already logs keystrokes and mouse movements, but I'd also like for it to track cut, copy, and paste operations. Things like WM_PASTE aren't registering, so I'm wondering if writing hooks for GetClipboardData and SetClipboardData would be better.
Anyone have thoughts on this? Also, I'll need some help writing the actual hook. Any help is appreciated.
Thanks!
--L