Textractor_test/texthook/main.h

24 lines
687 B
C
Raw Normal View History

#pragma once
// main.h
// 8/23/2013 jichi
// Branch: ITH/IHF_DLL.h, rev 66
2018-08-25 00:50:20 +08:00
#include "types.h"
2020-03-24 09:37:11 +08:00
void TextOutput(ThreadParam tp, BYTE (*buffer)[PIPE_BUFFER_SIZE], int len);
void ConsoleOutput(LPCSTR text, ...);
void NotifyHookFound(HookParam hp, wchar_t* text);
2019-02-28 00:33:17 +08:00
void NotifyHookRemove(uint64_t addr, LPCSTR name);
2018-11-11 12:29:12 +08:00
void NewHook(HookParam hp, LPCSTR name, DWORD flag = HOOK_ENGINE);
void RemoveHook(uint64_t addr, int maxOffset = 9);
inline SearchParam spDefault;
2018-09-23 03:45:54 +08: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 {}
// EOF