mirror of
https://github.com/snowie2000/mactype.git
synced 2025-01-08 11:47:43 +08:00
28187cbe48
Fix a bug that will crash program in certain cases. version info updated.
20 lines
543 B
C
20 lines
543 B
C
#include "common.h"
|
|
#include <VersionHelpers.h>
|
|
#include "easyhook.h"
|
|
|
|
#pragma once
|
|
|
|
#define HOOK_MANUALLY HOOK_DEFINE
|
|
#define HOOK_DEFINE(rettype, name, argtype) \
|
|
extern rettype(WINAPI * ORIG_##name) argtype; \
|
|
extern HOOK_TRACE_INFO HOOK_##name;
|
|
#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 |