0
Answer

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

L

L

14y
2.1k
1

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