mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
21 lines
392 B
C++
21 lines
392 B
C++
#include "match.h"
|
|
#include "main.h"
|
|
#include "text.h"
|
|
#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); }
|
|
}
|
|
} |