Admin privileges permission prompt gets minimized, why?

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
 
J

Jimmy Brush

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/
 
G

Guest

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
 
J

Jimmy Brush

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top