Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define HookFunc(addy,func) p##func = (func##_t)DetourFunction((PBYTE)addy,(PBYTE)func##_Detour);
- #define UnHookFunc(func) DetourRemove((PBYTE)p##func,(PBYTE)func##_Detour);
- #define DEF_DETOUR_FUNC( func , returntype , proto ) \
- returntype WINAPI func##_Detour proto; \
- typedef returntype ( WINAPI * func##_t ) proto ; \
- func##_t p##func = NULL;
Advertisement
Add Comment
Please, Sign In to add comment