Rev 3 |
Go to most recent revision |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 10 |
tristanc |
1 |
#include "../../Storm/H/STPL.h"
|
|
|
2 |
|
| 3 |
tristanc |
3 |
#include <Windows.h>
|
|
|
4 |
#include <detours.h>
|
|
|
5 |
#include <cstdlib>
|
|
|
6 |
#include <cstring>
|
|
|
7 |
#include <stdio.h>
|
|
|
8 |
|
|
|
9 |
#define DETOUR_INIT \
|
|
|
10 |
DetourTransactionBegin(); \
|
|
|
11 |
DetourUpdateThread(GetCurrentThread());
|
|
|
12 |
|
|
|
13 |
#define DETOUR_ATTACH(functionRef, detourFunctionRef) \
|
|
|
14 |
DetourAttach(&(PVOID &)functionRef,detourFunctionRef);
|
|
|
15 |
|
|
|
16 |
#define DETOUR_DETACH(functionRef, detourFunctionRef) \
|
|
|
17 |
DetourDetach(&(PVOID &)functionRef,detourFunctionRef);
|
|
|
18 |
|
|
|
19 |
#define DETOUR_COMMIT \
|
|
|
20 |
DetourTransactionCommit();
|