Rev 3 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#include "../../Storm/H/STPL.h"
#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();