强制关闭进程方法 执行Windows CMD指令:system(""); system("taskkill /f /t /im appName.exe"); 使用TerminateProcess()结束进程(推荐使用) HANDLE hself = GetCurrentProcess(); TerminateProcess(hself, 0);