Reputation: 231103
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 helper component to do this?
Upvotes: 2
Views: 524
Reputation: 21416
This is usually done by creating a separate process with the "runas" verb:
This process can perform any operations which require elevation.
Upvotes: 4