Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import core.sys.windows.windows; //windows types
- import MinHook;
- import std.stdio;
- void work(){
- writeln("I work");
- }
- void intercept(){
- writeln("sneaky intercept");
- }
- void main(){
- //stripped error handling
- MH_Initialize();
- MH_CreateHook(&work,&intercept,null);
- MH_EnableHook(&work);
- work();
- MH_DisableHook(&work);
- work();
- MH_Uninitialize();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement