Üye
C:
include <Windows.h>
#include <Psapi.h>
#include <TlHelp32.h>
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <locale.h>
BOOL IsCheatEngineRunning()
{
PROCESSENTRY32 pe32 = { sizeof(PROCESSENTRY32) };
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (hSnapshot == INVALID_HANDLE_VALUE)
return FALSE;
if (Process32First(hSnapshot, &pe32))
{
do {
if (strcmp(pe32.szExeFile, "cheatengine-i386.exe") == 0)
{
CloseHandle(hSnapshot);
return TRUE;
}
if (strcmp(pe32.szExeFile, "cheatengine-x86_64.exe") == 0)
{
CloseHandle(hSnapshot);
return TRUE;
}
} while (Process32Next(hSnapshot, &pe32));
}
CloseHandle(hSnapshot);
return FALSE;
}