Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Dec : WM_QUERYENDSESSION question

www.cryer.info
Managed Newsgroup Archive

WM_QUERYENDSESSION question

Subject:WM_QUERYENDSESSION question
Posted by:"Bob D" (bo..@demo.it)
Date:Thu, 14 Dec 2006 02:16:02 +0200

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

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive