Process elevation

It is a normal situation when user tries to edit and save a system file only to discover that he has no access to it. Currently he has to close the program, run it as admin, locate the file and redo the edits, which is very inconvenient.

How complex it is to add a command that will obtain admin permissions for this particular process (for its lifetime) without restarting it and losing the state? In other words, similar to how Explorer behaves when you try to change a system file.

If it's possible, then add Elevate command after File > Create Desktop Link:

  • on XP (where UAC is unavailable) it's disabled
  • if the process is already running under admin, or has been elevated - the command has a checkbox, and the command is disabled (no need to un-elevate)
  • in other cases the command is enabled with a checkbox, and calling it brings up UAC prompt
  • in any case, show the UAC shield icon before the command's text (source: https://msdn.microsoft.com/en-us/library/windows/desktop/dn742497(v=vs.85).aspx#guidelines)