Window hooks in c#

ε祈祈猫儿з 提交于 2019-11-29 04:40:00

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.

Have you looked at the EasyHook project? It seems to be a pretty active project. Microsoft also have an example on their site.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!