This commit is contained in:
2026-08-24 14:47:59 +08:00
parent e91e372b19
commit 75d9b25362
45 changed files with 17462 additions and 129 deletions
+16 -2
View File
@@ -41,12 +41,12 @@ namespace client_shared_mapping
return pData;
}
auto StartServerProcess(CONST char* Path) -> BOOL
auto StartServerProcess(CONST char* Path, PDWORD status)->BOOL
{
if (GetFileAttributesA(Path) != INVALID_FILE_ATTRIBUTES)
{
char buf[256]{ 0 };
sprintf_s(buf, "%s\\Anit-Seriver.exe", Path);
sprintf_s(buf, "%s\\ESP Anit-Cheat.exe", Path);
if (private_funcion::create_start_process(buf))
{
@@ -61,10 +61,24 @@ namespace client_shared_mapping
}
}*/
//启动成功
*status = 0;
return TRUE;
}
else
{
//进程启动失败 | 权限不足
*status = 100;
}
}
else
{
*status = 101;
//文件不存在
auto string = "[Anit-Cheat]系统运行发生致命错误,错误代码:" + to_string(GetLastError());
MessageBoxA(NULL, string.c_str(), "您似乎遇到了一些问题", MB_OK);
return FALSE;