开发者

Creating folders in UAC-protected areas

I have an application which needs to be able to create folders in UAC-protected directories semi-automatically (the user will be there to approve the UAC notice, but I don't want to ask them to go do it themselves). The program does not otherwise need elevation; is there a common call that can be used to leverage Explorer's built in elevation prompts for this, or must I implement my own elevated he开发者_JAVA技巧lper component to do this?


This is usually done by creating a separate process with the "runas" verb:

  • ShellExecute example
  • C# example

This process can perform any operations which require elevation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜