K
kamiikoneko
I'm looking for the simplest way to catch the creation and destruction
of any window in the OS in a C# application. When i override WndProc
it obviously only catches windows messages local to the application.
I looked around CodeProject and there was an old .net 1.0 solution for
global hooking that only handled context-switching hooks and I don't
think that window creation switches context. In any case that
solution ended up not working, and i really wonder if there isn't some
modern, pre-defined solution to my problem. I just want to be able to
catch windows messages globally in a C# program, and get the data that
comes with them (hWnd etc.).
Anyone know of anything?
of any window in the OS in a C# application. When i override WndProc
it obviously only catches windows messages local to the application.
I looked around CodeProject and there was an old .net 1.0 solution for
global hooking that only handled context-switching hooks and I don't
think that window creation switches context. In any case that
solution ended up not working, and i really wonder if there isn't some
modern, pre-defined solution to my problem. I just want to be able to
catch windows messages globally in a C# program, and get the data that
comes with them (hWnd etc.).
Anyone know of anything?