FIX: Service Does Not Receive SERVICE_CONTROL_SHUTDOWN Event
Article ID: 182561
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
- Microsoft Windows NT 4.0 Service Pack 1
- Microsoft Windows NT 4.0 Service Pack 2
- Microsoft Windows NT 4.0 Service Pack 3
This article was previously published under Q182561
SYMPTOMS
On Microsoft Windows NT 4.0 before Service Pack 4, a service may not receive the SERVICE_CONTROL_SHUTDOWN event. This may prevent a service from properly cleaning up before the system shuts down.
CAUSE
The Service Control Manager sends the SERVICE_CONTROL_SHTUDOWN event synchronously to all services one at a time. A service only receives the shutdown event when all services that received the event ahead of it have completed processing the event. A service has processed the event when it returns from its control handler function. If a service does not process the event, the following services will never receive the event. The system may shutdown before a service receives the event.
RESOLUTION
STATUS
Microsoft has confirmed that this is a problem in Windows NT version 4.0. This problem was first corrected in Windows NT version 4.0 Service Pack 4.
Keywords: kbbug kbfix kbkernbase kbservice KB182561