[C++] CBT Hook Example

来源:互联网 发布:跟钱站一样的网络贷款 编辑:程序博客网 时间:2024/04/29 05:29

Got bored of doing revision and started on a HookLib, this is an example program where I was testing using a CBT Hook.

header.h

Main.cpp

CBTHook.cpp

Its just a quick throw-together of setting a cbt hook on your window, the HookLib exports the hook function, allowing you to hook any process/the entire system.
Also note that the IsBadReadPtr is just there to ensure that the structure returned by the hook is valid, as sometimes it isnt causing the function to die.

原创粉丝点击