2016-08-12 10:14:45 +08:00
|
|
|
#include "common.h"
|
|
|
|
#include <VersionHelpers.h>
|
2016-08-15 10:53:41 +08:00
|
|
|
#include "easyhook.h"
|
2016-08-12 10:14:45 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#define HOOK_MANUALLY HOOK_DEFINE
|
|
|
|
#define HOOK_DEFINE(rettype, name, argtype) \
|
2016-08-15 10:53:41 +08:00
|
|
|
extern rettype(WINAPI * ORIG_##name) argtype; \
|
|
|
|
extern HOOK_TRACE_INFO HOOK_##name;
|
2016-08-12 10:14:45 +08:00
|
|
|
#include "hooklist.h"
|
|
|
|
#undef HOOK_DEFINE
|
|
|
|
#undef HOOK_MANUALLY
|
|
|
|
|
|
|
|
#define HOOK_MANUALLY(rettype, name, argtype) \
|
|
|
|
extern LONG hook_demand_##name(bool bForce = false);
|
|
|
|
#define HOOK_DEFINE(rettype, name, argtype) ;
|
|
|
|
#include "hooklist.h"
|
|
|
|
#undef HOOK_DEFINE
|
|
|
|
#undef HOOK_MANUALLY
|