I want to be able to intercept and show messages for any window running in any process. I already know how to filter through all running processes and find mainwindow handles for that process and thread ID's and such. Now what I want to do is create some kind of hook to intercept messages for any window of my choice. For now, I just want to display the messages going to that window in a listbox or something, much like you see in Spy++. I've done a ton of reading on creating hooks in C# (which requires importing Win32 methods), subclassing in C# and overriding winproc, and deriving from NativeWindows in C#, but haven't successfully been able to intercept any windows messages other than my own. Any ideas?
Thanks in advance!
Thanks in advance!