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. Windows 10 & WM_QUERY_ENDSESSION/WM_ENDSESSION

Windows 10 & WM_QUERY_ENDSESSION/WM_ENDSESSION

Scheduled Pinned Locked Moved C / C++ / MFC
databasecomhelpquestion
1 Posts 1 Posters 2 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.
  • P Offline
    P Offline
    Peter Weyzen
    wrote on last edited by
    #1

    Howdy! With the new great OS -- 10 -- we're seeing something odd. Running our installer is not shutting down our app. We do receive the WM_QUERY_ENDSESSION and we do reply with TRUE ( ok to shutdown ) But, upon receiving the WM_ENDSESSION we receive a FALSE (don't shutdown). Somewhere between the QUERY and the END -- "someone" is saying NO to this. How does one go about debugging this sort of thing? I've used SPY++ but am not finding it to be the most useful tool, except to confirm what I knew in code. SPY is not telling me who sends the QUERY. If I could figure out where these messages are coming from, maybe I could watch the conversations taking place around this transaction. -- in previous versions of Windows this was not an issue -- it worked like we would expect. But Windows10 is telling me not to end my session.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [soonr.com -- PC Power delivered to your phone](http://www.soonr.com)

    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