Subversion Repositories WoWGM

Rev

Rev 10 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#include <Windows.h>
#include <detours.h>
#include <cstdlib>
#include <cstring>
#include <stdio.h>

#define DETOUR_INIT \
        DetourTransactionBegin(); \
        DetourUpdateThread(GetCurrentThread());

#define DETOUR_ATTACH(functionRef, detourFunctionRef) \
        DetourAttach(&(PVOID &)functionRef,detourFunctionRef);

#define DETOUR_DETACH(functionRef, detourFunctionRef) \
        DetourDetach(&(PVOID &)functionRef,detourFunctionRef);

#define DETOUR_COMMIT \
        DetourTransactionCommit();