Subversion Repositories WoWGM

Rev

Rev 10 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 32
Line 1... Line 1...
1
#include "../../Storm/H/STPL.h"
1
#include "../../Storm/H/STPL.h"
2
 
2
 
3
#include <Windows.h>
3
#include <Windows.h>
4
#include <detours.h>
4
#include <detours.h>
5
#include <cstdlib>
5
#include <cstdlib>
6
#include <cstring>
6
#include <cstring>
7
#include <stdio.h>
7
#include <stdio.h>
8
 
8
 
9
#define DETOUR_INIT \
9
#define DETOUR_INIT \
10
	DetourTransactionBegin(); \
10
	DetourTransactionBegin(); \
11
	DetourUpdateThread(GetCurrentThread());
11
	DetourUpdateThread(GetCurrentThread());
12
 
12
 
13
#define DETOUR_ATTACH(functionRef, detourFunctionRef) \
13
#define DETOUR_ATTACH(functionRef, detourFunctionRef) \
14
	DetourAttach(&(PVOID &)functionRef,detourFunctionRef);
14
	DetourAttach(&(PVOID &)functionRef,detourFunctionRef);
15
 
15
 
16
#define DETOUR_DETACH(functionRef, detourFunctionRef) \
16
#define DETOUR_DETACH(functionRef, detourFunctionRef) \
17
	DetourDetach(&(PVOID &)functionRef,detourFunctionRef);
17
	DetourDetach(&(PVOID &)functionRef,detourFunctionRef);
18
 
18
 
19
#define DETOUR_COMMIT \
19
#define DETOUR_COMMIT \
20
	DetourTransactionCommit();
20
	DetourTransactionCommit();
-
 
21