Admin privileges permission prompt gets minimized, why?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All,

Am trying to execute my application using ShellExecute(), Since my app
doesnt have enough privileges, it prompts user to give permission to elevate
the permissions, but this prompt is always minimised (in 5472) which the user
might not notice.

why does it minize and how can i make sure that the popup msg box is maxd.

thanks
 
If the application requesting elevation doesn't have the focus, the UAC
dialog will be shown minimized and flash in the taskbar.

If the application calling ShellExecute HAS the focus, and the UAC dialog is
shown in the taskbar, I would call that a bug, as calling ShellExecute from
an application with the focus should automatically give the focus to the new
application, shouldn't it?

- JB

Vista Support FAQ
http://www.jimmah.com/vista/
 
So is it like my application doesnt have enough focus for UAC to display the
permission prompt ? but the same happen when thats the only application
running
 
If your app is the one with the focus (it's the top-level window and has the
user input) it shouldn't behave like you are saying it does.

Based on the information you have posted, this sounds like a bug in Windows
Vista.

- JB

Vista Support FAQ
http://www.jimmah.com/vista/
 
Back
Top