Textractor_test/vnrhook/engine/match64.cc

21 lines
392 B
C++
Raw Normal View History

#include "match.h"
2018-12-21 23:10:51 +08:00
#include "main.h"
#include "text.h"
2018-12-21 23:10:51 +08:00
#include "native/pchooks.h"
namespace Engine
{
void Hijack()
{
static bool hijacked = false;
if (hijacked) return;
hijacked = true;
__try
{
PcHooks::hookGDIFunctions();
PcHooks::hookGDIPlusFunctions();
PcHooks::hookOtherPcFunctions();
}
__except (EXCEPTION_EXECUTE_HANDLER) { ConsoleOutput(HIJACK_ERROR); }
2018-12-21 23:10:51 +08:00
}
}