veh clean up and more log info

This commit is contained in:
pohky 2021-10-31 23:37:24 +01:00
parent 803b61a5a9
commit ff5dc1fa04
3 changed files with 184 additions and 96 deletions

View file

@ -47,9 +47,10 @@ DllExport DWORD WINAPI Initialize(LPVOID lpParam)
// ============================== VEH ======================================== //
printf("Initializing VEH... ");
if (veh::add_handler())
printf("VEH Installed\n");
else printf("Failed to Install VEH\n");
printf("Done!\n");
else printf("Failed!\n");
// =========================================================================== //
@ -72,7 +73,6 @@ BOOL APIENTRY DllMain(const HMODULE hModule, const DWORD dwReason, LPVOID lpRese
g_hModule = hModule;
break;
case DLL_PROCESS_DETACH:
// remove the VEH on unload
veh::remove_handler();
break;
}