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. C / C++ / MFC
  4. WM_QUERYENDSESSION

WM_QUERYENDSESSION

Scheduled Pinned Locked Moved C / C++ / MFC
comsysadmin
2 Posts 2 Posters 1 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.
  • U Offline
    U Offline
    User 2880736
    wrote on last edited by
    #1

    From Ole Server Application do we have to call this (WM_QUERYENDSESSION)

    S 1 Reply Last reply
    0
    • U User 2880736

      From Ole Server Application do we have to call this (WM_QUERYENDSESSION)

      S Offline
      S Offline
      Sauro Viti
      wrote on last edited by
      #2

      Member 2883067 wrote:

      From Ole Server Application do we have to call this (WM_QUERYENDSESSION)

      What you precisely mean with this sentence? The WM_QUERYENDSESSION message is sent by Windows in the initial steps of a shutdown. If you want to shutdown the operating system (turn-off, reboot, ...) you should use the ExitWindowsEx Function (Windows)[^], that logs off the interactive user, shuts down the system, or shuts down and restarts the system. It sends the WM_QUERYENDSESSION message to all applications to determine if they can be terminated. For an example on how to use that API, see How to Shut Down the System (Windows)[^]

      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