Whether any Event is triggered while UAC pops up?
-
Hi, I just want to know whether any event or any windows message is triggered while UAC pops up in vista. Anyone have any idea? Thanks in Advance. with regards
Raja Bose
-
Hi, I just want to know whether any event or any windows message is triggered while UAC pops up in vista. Anyone have any idea? Thanks in Advance. with regards
Raja Bose
In Windows Vista, to show a UAC prompt, Windows does the following:
- Takes a screenshot of the current desktop, dims it
- Switches the user's desktop to a different console (for security purposes)
- Shows the dimmed screenshot on the secure console and shows the UAC prompt
- Accepts the input to the dialog box, and switches the user back to their primary console
Other processes and threads will continue to operate as though nothing happened; however, the UAC prompt (depending on the operation you're performing) will block the thread from which it was invoked.
Adam Maras | Software Developer Microsoft Certified Professional Developer
-
In Windows Vista, to show a UAC prompt, Windows does the following:
- Takes a screenshot of the current desktop, dims it
- Switches the user's desktop to a different console (for security purposes)
- Shows the dimmed screenshot on the secure console and shows the UAC prompt
- Accepts the input to the dialog box, and switches the user back to their primary console
Other processes and threads will continue to operate as though nothing happened; however, the UAC prompt (depending on the operation you're performing) will block the thread from which it was invoked.
Adam Maras | Software Developer Microsoft Certified Professional Developer
Thank you for your reply Adam, Like WM_DISPLAYCHANGE indicates that the user has changed the display resolution, is it possible to get any event notification to the Application while switches from user's primary console to security console? with regards,
Raja Bose
-
In Windows Vista, to show a UAC prompt, Windows does the following:
- Takes a screenshot of the current desktop, dims it
- Switches the user's desktop to a different console (for security purposes)
- Shows the dimmed screenshot on the secure console and shows the UAC prompt
- Accepts the input to the dialog box, and switches the user back to their primary console
Other processes and threads will continue to operate as though nothing happened; however, the UAC prompt (depending on the operation you're performing) will block the thread from which it was invoked.
Adam Maras | Software Developer Microsoft Certified Professional Developer
I don't mean to be rude, but I am not completely sure how you are answering the original question. In my perception, you seem to be providing information that is 'nice to know' but is kind of non sequitur to the asked question. Do you, by any chance, know of any certain Windows messages or hooks or callbacks that are sent when Windows Vista invokes UAC? Sure it blocks the thread for which it happened, but what about everything else? Don't they even get a heads up? And btw, while we're on the subject of UAC...how do I make it so UAC is required if a user clicks a certain button? Brian
Sincerely Yours, Brian Hart
-
I don't mean to be rude, but I am not completely sure how you are answering the original question. In my perception, you seem to be providing information that is 'nice to know' but is kind of non sequitur to the asked question. Do you, by any chance, know of any certain Windows messages or hooks or callbacks that are sent when Windows Vista invokes UAC? Sure it blocks the thread for which it happened, but what about everything else? Don't they even get a heads up? And btw, while we're on the subject of UAC...how do I make it so UAC is required if a user clicks a certain button? Brian
Sincerely Yours, Brian Hart
This might be intresting to you Add a UAC shield to a button when elevation is required for admin tasks[^]