摘要:
char* convertQString2char(const QString &str) { QByteArray ba = str.toUtf8(); char * pathChar = ba.data(); return pathChar; } 阅读全文
摘要:
bool checkProcessRunning(const QString &processName, QList &listProcessId) { #ifdef Q_OS_WIN bool res = false; HANDLE hToolHelp32Snapshot; hToolHelp32Snapshot = CreateToolhelp32Snapsho... 阅读全文
摘要:
QString getProcessFullPath(const quint64 &processId) { #ifdef Q_OS_WIN // access process path WCHAR name[1024]; ZeroMemory(name, 1024); // open process handler HANDLE hProcess = O... 阅读全文
摘要:
QString getProcessPathForWin(int idProcess) { #ifdef Q_OS_WIN // access process path WCHAR name[1024]; ZeroMemory(name, 1024); // open process handler HANDLE hProcess = OpenProces... 阅读全文
摘要:
#ifdef WIN32 bool res = false; HANDLE hToolHelp32Snapshot; hToolHelp32Snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); PROCESSENTRY32 pe = { sizeof(PROCESSENTRY32) };... 阅读全文