hlsdk

hlsdk

Jan 12th, 2010
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. #define HookFunc(addy,func) p##func = (func##_t)DetourFunction((PBYTE)addy,(PBYTE)func##_Detour);
  3. #define UnHookFunc(func) DetourRemove((PBYTE)p##func,(PBYTE)func##_Detour);
  4.  
  5. #define DEF_DETOUR_FUNC( func , returntype , proto ) \
  6. returntype WINAPI func##_Detour proto; \
  7. typedef returntype ( WINAPI * func##_t ) proto ; \
  8. func##_t p##func = NULL;
Advertisement
Add Comment
Please, Sign In to add comment