I have an issue where the Windows 8 User Account Control (UAC) popup is minimized when I execute a command line helper program that requests admin privileges in its manifest. The UAC popup window just blinks yellow in the Windows taskbar, causing a confusing user experience:
After clicking the taskbar icon, then the UAC alert shows:
In Windows 7, the UAC alert is not minimized but shows in the foreground. Any thoughts on how to fix this in Windows 8?
For reference, my main application runs under user privilege and executes the helper program with ShellExecuteEx
. I am setting ShellExecuteEx
's TShellExecuteInfo.nShow
to SW_SHOW
.
TForm
that was executing the exe and I was specifyingApplication.Handle
toShellExecuteEx
rather than theTForm.Handle
(which has focus when executing the command line helper). +1s and I'll accept an answer if you like too. – Reeves