When a user saves a file from my application, they currently cannot save to limited places (e.g. C :). I think this is a good restriction, but I would like to provide a UAC invitation to elevate privileges and allow the user to save in a limited area.
I saw many answers on this topic that include creating a new process with elevated privileges using "runas". In addition, it seems that this can be done by impersonating another user. From what I understand, both of these methods require the user to provide user credentials.
What I want to do is basically what Windows itself does. When you try to copy a file to C: \ on Windows 7 (if you have UAC installed at the default level), you will receive the following prompt:

As soon as you click the Continue button with the UAC screen, the file will be copied to C: \ without prompting for credentials (provided that you are logged in with administrator rights).
How can I reproduce this behavior in my application for admin users? They do not need to impersonate another user, as they already have administrator privileges. Can someone provide detailed information on what Windows does during this process? Do they spawn a new privileged explorer.exe process?
Joseph Tilley
source share