如何用创建进程api用管理员模式打开指定的应用程序。

jack32830 2019-09-15 10:36:54
找到的资料都不能实现管理员模式打开。有什么api可以实现么。
...全文
161 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Eleven 2019-09-16
  • 打赏
  • 举报
回复
ShellExecuteEx
SHELLEXECUTEINFO lpVerb = "runas"

runas
Launches an application as Administrator. User Account Control (UAC) will prompt the user for consent to run the application elevated or enter the credentials of an administrator account used to run the application.
zgl7903 2019-09-16
  • 打赏
  • 举报
回复
smwhotjay 2019-09-15
  • 打赏
  • 举报
回复
CreateProcessAsUser

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧