Hello,
when user resets, shutdowns or logoffs, Windows sends the WM_QUERYENDSESSION
to every opened window. I have 2 questions regarding this:
1. It is possible to detect if its Shutdown/Restart or Logoff. Is is
possible to know if user Restart or Shutdowns? In both cases I receive
LParam 0.
2. Windows sends the WM_QUERYENDSESSION message to every window. What is the
order of this windows? I mean, how they decided to which window it will send
first, second... etc? Can I change this order and put my application at the
end of this list?
Thanks