Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Whether any Event is triggered while UAC pops up?

Whether any Event is triggered while UAC pops up?

Scheduled Pinned Locked Moved Windows API
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Raja Bose C Leo
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • R Raja Bose C Leo

      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

      A Offline
      A Offline
      Adam Maras
      wrote on last edited by
      #2

      In Windows Vista, to show a UAC prompt, Windows does the following:

      1. Takes a screenshot of the current desktop, dims it
      2. Switches the user's desktop to a different console (for security purposes)
      3. Shows the dimmed screenshot on the secure console and shows the UAC prompt
      4. 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

      R Brian C HartB 2 Replies Last reply
      0
      • A Adam Maras

        In Windows Vista, to show a UAC prompt, Windows does the following:

        1. Takes a screenshot of the current desktop, dims it
        2. Switches the user's desktop to a different console (for security purposes)
        3. Shows the dimmed screenshot on the secure console and shows the UAC prompt
        4. 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

        R Offline
        R Offline
        Raja Bose C Leo
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • A Adam Maras

          In Windows Vista, to show a UAC prompt, Windows does the following:

          1. Takes a screenshot of the current desktop, dims it
          2. Switches the user's desktop to a different console (for security purposes)
          3. Shows the dimmed screenshot on the secure console and shows the UAC prompt
          4. 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

          Brian C HartB Offline
          Brian C HartB Offline
          Brian C Hart
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • Brian C HartB Brian C 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

            S Offline
            S Offline
            Saksida Bojan
            wrote on last edited by
            #5

            This might be intresting to you Add a UAC shield to a button when elevation is required for admin tasks[^]

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups