Quote:
Originally Posted by LoRd_MuldeR
You can use ExecShell, which will trigger an UAC dialog and, if the user agrees, launch the process. But then you can not wait for the process to finish...
I implemented the ExecShellWaitEx function for exactly that reason:
http://muldersoft.com/docs/stdutils_....html#a3d3af46
|
ExecShell nor any kind of ExecShellWait is enough to reliably start a process elevated, this is bad advice.
Two issues off the top of my head:
A) Vista, 7 (and 8?) with UAC turned off.
B) 2000, XP and 2003 with non-admin credentials used in the runas dialog.