Если не верите на слово привожу цитату с MS
Цитата:
When an application returns TRUE for this message, it receives the WM_ENDSESSION message, regardless of how the other applications respond to the WM_QUERYENDSESSION message. Each application should return TRUE or FALSE immediately upon receiving this message, and defer any cleanup operations until it receives the WM_ENDSESSION message.
|
т.е., если не удасться положить форму через запрос конца сессии -> запрос закрытия программы, будет выполнен конец сессии который вызывает application.terminate.
добавлено:
хотя опять себя обманываю, сейчас перепроверю..