Integrity check for process protection
This commit is contained in:
parent
1ca490d953
commit
727f673069
@ -164,6 +164,13 @@ namespace Components
|
|||||||
|
|
||||||
AntiCheat::CrashClient();
|
AntiCheat::CrashClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Move that elsewhere
|
||||||
|
if (HANDLE h = OpenProcess(PROCESS_VM_READ, TRUE, GetCurrentProcessId()))
|
||||||
|
{
|
||||||
|
CloseHandle(h);
|
||||||
|
AntiCheat::CrashClient();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AntiCheat::PerformCheck()
|
void AntiCheat::PerformCheck()
|
||||||
@ -326,6 +333,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Beautify that
|
||||||
DWORD AntiCheat::ProtectProcess()
|
DWORD AntiCheat::ProtectProcess()
|
||||||
{
|
{
|
||||||
// Returned to caller
|
// Returned to caller
|
||||||
|
Loading…
Reference in New Issue
Block a user