摘要: char* convertQString2char(const QString &str) { QByteArray ba = str.toUtf8(); char * pathChar = ba.data(); return pathChar; } 阅读全文
posted @ 2018-10-12 10:48 风来风往风伤(TiAmo) 阅读(341) 评论(0) 推荐(0) 编辑
摘要: bool checkProcessRunning(const QString &processName, QList &listProcessId) { #ifdef Q_OS_WIN bool res = false; HANDLE hToolHelp32Snapshot; hToolHelp32Snapshot = CreateToolhelp32Snapsho... 阅读全文
posted @ 2018-10-12 10:46 风来风往风伤(TiAmo) 阅读(11452) 评论(0) 推荐(0) 编辑
摘要: QString getProcessFullPath(const quint64 &processId) { #ifdef Q_OS_WIN // access process path WCHAR name[1024]; ZeroMemory(name, 1024); // open process handler HANDLE hProcess = O... 阅读全文
posted @ 2018-10-12 10:43 风来风往风伤(TiAmo) 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: QString getProcessPathForWin(int idProcess) { #ifdef Q_OS_WIN // access process path WCHAR name[1024]; ZeroMemory(name, 1024); // open process handler HANDLE hProcess = OpenProces... 阅读全文
posted @ 2018-10-12 10:39 风来风往风伤(TiAmo) 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: #ifdef WIN32 bool res = false; HANDLE hToolHelp32Snapshot; hToolHelp32Snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); PROCESSENTRY32 pe = { sizeof(PROCESSENTRY32) };... 阅读全文
posted @ 2018-10-12 10:31 风来风往风伤(TiAmo) 阅读(977) 评论(0) 推荐(0) 编辑