Integrity check for process protection

This commit is contained in:
momo5502 2016-08-08 14:56:26 +02:00
parent 1ca490d953
commit 727f673069

View File

@ -164,6 +164,13 @@ namespace Components
AntiCheat::CrashClient();
}
// TODO: Move that elsewhere
if (HANDLE h = OpenProcess(PROCESS_VM_READ, TRUE, GetCurrentProcessId()))
{
CloseHandle(h);
AntiCheat::CrashClient();
}
}
void AntiCheat::PerformCheck()
@ -326,6 +333,7 @@ namespace Components
}
}
// TODO: Beautify that
DWORD AntiCheat::ProtectProcess()
{
// Returned to caller