b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

shellexecute打开网页_shellexecutehooks_shellexecuteinfo

电脑杂谈  发布时间:2017-02-04 23:02:49  来源:网络整理
shellexecuteinfoshellexecuteinfo

ShellExecuteEx取得管理员权限,ShellExecuteEx取得管理员权限

[cpp]

void GainAdminPrivileges(UINT idd, BOOL bWait){

CString strCmd;

CString strApp;

strCmd.Format (_T("/adminoption %d"), idd);

CSVPToolBox svpTool;

strApp = svpTool.GetPlayerPath();

SHELLEXECUTEINFO execinfo;

memset(&execinfo, 0, sizeof(execinfo));

execinfo.lpFile = strApp;

execinfo.cbSize = sizeof(execinfo);

execinfo.lpVerb = _T("runas");

execinfo.fMask = SEE_MASK_NOCLOSEPROCESS;

execinfo.nShow = SW_SHOWDEFAULT;

execinfo.lpParameters = strCmd;

ShellExecuteEx(&execinfo);

if(bWait)

WaitForSingleObject(execinfo.hProcess, INFINITE);

}


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-30578-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      • 扈载
        扈载

        全面备战搞点气势出来

      • 许冉
        许冉

        实在不行

        • 易慧
          易慧

          首先我们实力已经显著增强

      • 陈晔
        陈晔

        那些去抢苹果手机的脑残该醒醒了

      热点图片
      拼命载入中...