mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 09:24:12 +08:00
20 lines
388 B
C++
20 lines
388 B
C++
#include "main.h"
|
|
#include "native/pchooks.h"
|
|
#include "match.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("Textractor: Hijack ERROR"); }
|
|
}
|
|
} |