Create a process with ordinary rights from an administrator process

前端 未结 6 1694
别跟我提以往
别跟我提以往 2020-12-20 04:46

There is any way to run another process with ordinary rights from a process running as administrator? From a process with elevated rights I want to start a process with ordi

6条回答
  •  遥遥无期
    2020-12-20 04:52

    The technique I've used with success is to use IShellDispatch2::ShellExecute to ask Explorer to launch the process. Since Explorer typically runs as normal integrity, this is effective. The trick is that it's a bit of work to get the IShellDispatch2 object. I followed the process outlined in this blog.

提交回复
热议问题