摘要:
QString command = "sc create YourServiceName binPath= \""+application_path+"\" start= auto";QProcess::startDetached( command ); 阅读全文
摘要:
QString application_name = QApplication::applicationName(); QSettings *settings = new QSettings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\C... 阅读全文
摘要:
QList list = QNetworkInterface::allInterfaces();foreach(QNetworkInterface i, list) {qDebug() << i;} 阅读全文
摘要:
http://www.cnblogs.com/gisbeginner/archive/2012/12/08/2809063.htmlBOOL ExecDosCmd(){ #define EXECDOSCMD "ping http://www.baidu.com" //可以换成你的命令SECURITY... 阅读全文
摘要:
使用方法: QMap app_pid; getAllAppPidList( app_pid );#include // for CreateToolhelp32Snapshot#include // for GetModuleFileNameEx#define FORMAT_PAT... 阅读全文