#pragma once #include #include #include "FiestaHook.h" #include "Utils.h" using namespace DragonHook; BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { DragonHook::FiestaHook::Start(); DisableThreadLibraryCalls(hinstDLL); } else if (fdwReason == DLL_PROCESS_DETACH) { DragonHook::FiestaHook::Stop(); } return TRUE; }