Window hooks in c#

后端 未结 2 920
心在旅途
心在旅途 2020-12-17 01:59

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

2条回答
  •  感情败类
    2020-12-17 02:16

    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.

提交回复
热议问题