2016-01-06 00:01:17 +09:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// main.h
|
|
|
|
// 8/23/2013 jichi
|
|
|
|
// Branch: ITH/IHF_DLL.h, rev 66
|
|
|
|
|
2018-08-24 12:50:20 -04:00
|
|
|
#include "types.h"
|
2016-01-06 00:01:17 +09:00
|
|
|
|
2020-03-23 19:37:11 -06:00
|
|
|
void TextOutput(ThreadParam tp, BYTE (*buffer)[PIPE_BUFFER_SIZE], int len);
|
2018-12-01 15:53:54 -05:00
|
|
|
void ConsoleOutput(LPCSTR text, ...);
|
2019-06-09 00:48:30 -04:00
|
|
|
void NotifyHookFound(HookParam hp, wchar_t* text);
|
2019-02-27 11:33:17 -05:00
|
|
|
void NotifyHookRemove(uint64_t addr, LPCSTR name);
|
2018-11-10 23:29:12 -05:00
|
|
|
void NewHook(HookParam hp, LPCSTR name, DWORD flag = HOOK_ENGINE);
|
2018-12-01 15:53:54 -05:00
|
|
|
void RemoveHook(uint64_t addr, int maxOffset = 9);
|
2016-01-06 00:01:17 +09:00
|
|
|
|
2019-07-16 21:55:40 +05:30
|
|
|
inline SearchParam spDefault;
|
2019-06-16 15:28:59 -04:00
|
|
|
|
2018-09-22 15:45:54 -04:00
|
|
|
#define ITH_RAISE (*(int*)0 = 0) // raise C000005, for debugging only
|
|
|
|
#define ITH_TRY __try
|
|
|
|
#define ITH_EXCEPT __except(EXCEPTION_EXECUTE_HANDLER)
|
|
|
|
#define ITH_WITH_SEH(...) ITH_TRY { __VA_ARGS__; } ITH_EXCEPT {}
|
|
|
|
|
2016-01-06 00:01:17 +09:00
|
|
|
// EOF
|