zwfticker
获得 23 次赞
帮助过80人
http://liangmaowo.cn/2018/09/07/%E7%94%A8arduino-ide%E7%BC%96%E5%86%99stm32%E7%A8%8B%E5%BA%8F/
AdminAuthorization类:此类是为了验证程序的运行权限,和提权运行。提供了两个静态方法:static bool hasAdminRights();//判断当前运行的程序有没有管理员权限。static bool execute(QWidget *parent const QString &programs const QStringList &arguments);//以管理员身份启动新的程序:QWidget *parent//提示对话框的父级窗体。Win下没用。const QString &programs //要启动的程序的命令6const QStringList &arguments//程序启动参数