On XP if a program causes a logoff with the EWX_FORCE option, XP sends
*both* WM_QUERYENDSESSION and WM_ENDSESSION with lParam == 0.
I have two problems with that:
1) WM_ENDSESSION with lParam of 0 is supposed to mean Shutdown not logoff.
2) EWX_FORCE is not supposed to cause WM_QUERYENDSESSION or
WM_ENDSESSION to be sent.
Is this behaviour expected on XP? The docs certainly indicate otherwise.
If this is true, is there anyway to differentiate between EWX_FORCE
logoff and a regular shutdown?
-Earle
|