1.判断进程是否在运行 //判断进程是否在运行 BOOL ProcessRunning(CString szExeName) { BOOL BRunning = FALSE; PROCESSENTRY32 processEntry32; HANDLE toolHelp32Snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0