You cannot lift a process after it starts, but you can: -
Reboot the process as elevated
private void elevateCurrentProcess()
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.UseShellExecute = true;
startInfo.WorkingDirectory = Environment.CurrentDirectory;
startInfo.FileName = Application.ExecutablePath;
startInfo.Verb = "runas";
try
{
Process p = Process.Start(startInfo);
}
catch
{
return;
}
Application.Exit();
}
, , - UAC, , , .
, exe
requireAdministrator . .
UAC .
( ) .