Application are not sent WM_QUERYENDSESSION in Vista build 5308

My application does not seem to be sent WM_QUERYENDSESSION on Vista. I'm using build 5308. Is this message still supported in Vista?

I have heard of new ShutdownBlockReasonCreate and ShutdownBlockReasonDestroy. But they don't allow you to specify which operations to block. I would like to block logoff but not shutdown or restart.

Thank you,

John

[374 byte] By [JohnZolezzi] at [2007-12-24]
# 1
John,

I tested my app on build 5308 and confirmed that it gets a WM_QUERYENDSESSION for Logoff, Shutdown, and Restart.

After a few seconds the Vista warning screen appears identifying the app that is not responding to the WM_QUERYENDSESSION message.
donelder at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,UI Development for Windows Vista...
# 2
The message is sent but it seems Vista doesn't respect the value of the reply. It doesn't seem possible to stop the logoff.
ChrisRossall at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,UI Development for Windows Vista...
# 3

There's some information on this page:

http://windowssdk.msdn.microsoft.com/en-us/library/ms700677.aspx

ChrisRossall at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,UI Development for Windows Vista...

Software Development for Windows Vista

Site Classified