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. Managed C++/CLI
  4. Windows Shutdown notification in a MFC Dialog app

Windows Shutdown notification in a MFC Dialog app

Scheduled Pinned Locked Moved Managed C++/CLI
c++question
7 Posts 3 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.
  • S Offline
    S Offline
    Sunil P V
    wrote on last edited by
    #1

    Hi, I need a notification mechanism for windows shutting down prefferably wthout polling. Any ideas? Thanks in advance.

    Sunil

    L 1 Reply Last reply
    0
    • S Sunil P V

      Hi, I need a notification mechanism for windows shutting down prefferably wthout polling. Any ideas? Thanks in advance.

      Sunil

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      WM_QUERYENDSESSION[^] may be the message you need to check.

      One of these days I'm going to think of a really clever signature.

      R 1 Reply Last reply
      0
      • L Lost User

        WM_QUERYENDSESSION[^] may be the message you need to check.

        One of these days I'm going to think of a really clever signature.

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        Some dimwit had downvoted you for giving a valid answer.

        "Real men drive manual transmission" - Rajesh.

        L S 2 Replies Last reply
        0
        • R Rajesh R Subramanian

          Some dimwit had downvoted you for giving a valid answer.

          "Real men drive manual transmission" - Rajesh.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Rajesh R Subramanian wrote:

          Some dimwit

          Extremely dim, I think. Thanks, your 40 points take me soaring to the sky again. :laugh:

          One of these days I'm going to think of a really clever signature.

          L 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Some dimwit had downvoted you for giving a valid answer.

            "Real men drive manual transmission" - Rajesh.

            S Offline
            S Offline
            Sunil P V
            wrote on last edited by
            #5

            :)

            Sunil

            1 Reply Last reply
            0
            • L Lost User

              Rajesh R Subramanian wrote:

              Some dimwit

              Extremely dim, I think. Thanks, your 40 points take me soaring to the sky again. :laugh:

              One of these days I'm going to think of a really clever signature.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              And another counter.

              Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

              L 1 Reply Last reply
              0
              • L Lost User

                And another counter.

                Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Thanks, maybe my stalker is back from holiday, or jail.

                One of these days I'm going to think of a really clever signature.

                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