init
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user