|
|
От: |
_Jane_
|
|
| Дата: | 26.07.04 12:19 | ||
| Оценка: | 2 (1) | ||
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.