摘要:
HWND CProcessManage::GetHwnd(CString strProcessName,bool &bProcessExist){ bProcessExist = false; HWND hwnd = NULL; DWORD dwPID = GetPID(strProcessName); if (dwPID > 0) { bProcessExist = true; CMainWindowIterator mainWindwoIter(dwPID); hwnd = mainWindwoIter.First(); } return hwnd;}//通过PID Kill 阅读全文