Bypassing elevation when launching a new process

后端 未结 4 1334
无人共我
无人共我 2020-12-03 23:53

OK, here\'s my problem: I\'m trying to launch a third-party application. This application is apparently configured to require elevation, presumably via an embedded manifest

4条回答
  •  猫巷女王i
    2020-12-04 00:40

    Set the environment variable __compat_layer for your process to RunAsInvoker. If this environment variable is set, CreateProcess will succeed.

    You can use the SetEnvironmentVariable function for this purpose.

提交回复
热议问题