远程桌面优化迟钝问题

This commit is contained in:
yuanyuanxiang
2019-01-07 20:46:03 +08:00
parent a98d69f434
commit c681cf0132
10 changed files with 67 additions and 29 deletions

View File

@@ -39,6 +39,12 @@ int main(int argc, const char *argv[])
std::cout<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n";
return -1;
}
HANDLE hMutex = ::CreateMutexA(NULL, TRUE, "ghost.exe");
if (ERROR_ALREADY_EXISTS == GetLastError())
{
CloseHandle(hMutex);
return -2;
}
SetConsoleCtrlHandler(&callback, TRUE);
const char *szServerIP = argv[1];
@@ -54,6 +60,7 @@ int main(int argc, const char *argv[])
CloseHandle(hThread);
status = E_STOP;
CloseHandle(hMutex);
return 0;
}
#else