mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 07:44:02 +08:00
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
#pragma once
|
|
|
|
// main.h
|
|
// 8/23/2013 jichi
|
|
// Branch: ITH/IHF_DLL.h, rev 66
|
|
|
|
void TextOutput(const ThreadParam &tp, const HookParam &hp, TextOutput_T(*buffer), int len);
|
|
void ConsoleOutput(LPCSTR text, ...);
|
|
void WarningOutput(LPCSTR text, ...);
|
|
void NotifyHookFound(HookParam hp, wchar_t *text);
|
|
void NotifyHookRemove(uint64_t addr, LPCSTR name);
|
|
bool NewHook(HookParam hp, LPCSTR name);
|
|
bool NewHookJit(HookParam hp, LPCSTR name);
|
|
|
|
void RemoveHook(uint64_t addr, int maxOffset = 9);
|
|
std::string LoadResData(LPCWSTR pszResID, LPCWSTR _type);
|
|
inline SearchParam spDefault;
|
|
|
|
// EOF
|
|
int HookStrLen(HookParam *, BYTE *data);
|
|
inline std::unordered_map<uintptr_t, std::pair<JITTYPE, uintptr_t>> emuaddr2jitaddr;
|
|
inline std::unordered_map<uintptr_t, std::pair<JITTYPE, uintptr_t>> jitaddr2emuaddr;
|
|
void jitaddraddr(uintptr_t em_addr, uintptr_t jitaddr, JITTYPE);
|
|
|
|
void context_get(hook_stack *, PCONTEXT);
|
|
void context_set(hook_stack *, PCONTEXT);
|
|
|
|
inline std::map<uintptr_t, std::pair<std::string, HookParam>> delayinserthook;
|
|
void delayinsertadd(HookParam, std::string);
|
|
void delayinsertNewHook(uintptr_t);
|
|
inline bool safeautoleaveveh = false;
|
|
inline bool dont_detach = false;
|
|
inline bool host_connected = false; |