FIX: Service Does Not Receive SERVICE_CONTROL_SHUTDOWN Event (182561)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows NT 4.0 SP1
    • the operating system: Microsoft Windows NT 4.0 SP2
    • the operating system: Microsoft Windows NT 4.0 SP3

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.

Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbbug kbfix kbKernBase kbService KB182561