Textractor_test/vnrhook/main.h

21 lines
496 B
C
Raw Normal View History

#pragma once
// main.h
// 8/23/2013 jichi
// Branch: ITH/IHF_DLL.h, rev 66
2018-08-23 23:53:23 +08:00
#include "common.h"
2018-08-25 00:50:20 +08:00
#include "types.h"
2018-08-26 03:45:25 +08:00
#include "pipe.h"
2018-08-26 03:45:25 +08:00
void NewHook(const HookParam &hp, LPCSTR name, DWORD flag = HOOK_ENGINE);
2018-09-21 09:59:07 +08:00
void RemoveHook(uint64_t addr);
2018-08-26 03:45:25 +08:00
void SwitchTrigger(DWORD on);
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