Im trying to hook up to other windows from csharp. Im using SetWindowsHookEx
, but no luck with converting it fom c++ t c#.
I found this thread here
but it wasnt
The WH_GETMESSAGE hook is a global hook. It requires a DLL that can be injected into another process. The hMod argument. There's a problem, you can't write such a DLL in a managed language. The target process won't have the CLR initialized.
There's a code project that offers such a DLL, maybe you can make it work. Black belt required.