"David Lowndes" <Dav...@example.invalid> wrote in message
news:3t99r7dt097bd3so3...@4ax.com...
> >I just want to know, if everything goes right, and if we return FALSE
>>in OnQueryEndSession() what will heppan? Windows will not shut down pc?
>
> That's what the documentation says.
Actually, it could in some cases like in terminal servers. It's very common
for administrators to log off disconnected sessions, or set it to auto log
off if disconnected after a period of time. When that happens, your
application that might be displaying "Do you want to save?" prompt will be
allowed only 5 seconds to terminate, after that, the process is
automatically killed. This is because the session is disconnected and
invisible, so no one is responding to the Save prompt. This is documented
somewhere in MSDN.