Мне под виндами (2k,XP) нужно задержать выключение компа.
У меня есть сервис и он при перезагрузке или выключении компа
не всегда успевает сбросить информацию на диск.
Можно ли заставить систему ждать когда завершится сохранение данных на диск?
Здравствуйте, Аноним, Вы писали:
тогда, может это поможет
Platform SDK: Windows System Information
Receiving Shutdown Notification
Applications with a window and message queue receive shutdown notification through the WM_QUERYENDSESSION message.
Console applications receive shutdown notification in their handler routines. To register a console handler, use the SetConsoleCtrlHandler function.
Service applications receive shutdown notification in their handler routines. To register a service control handler, use the RegisterServiceCtrlHandlerEx function.
Здравствуйте, _Jane_, Вы писали:
_J_>Здравствуйте, Аноним, Вы писали:
_J_>тогда, может это поможет
_J_>_J_>Platform SDK: Windows System Information
_J_>Receiving Shutdown Notification
_J_>Applications with a window and message queue receive shutdown notification through the WM_QUERYENDSESSION message.
_J_>Console applications receive shutdown notification in their handler routines. To register a console handler, use the SetConsoleCtrlHandler function.
_J_>Service applications receive shutdown notification in their handler routines. To register a service control handler, use the RegisterServiceCtrlHandlerEx function.
Спасибо. Попробую.