Microsoft KB Archive/277715

= BUG: ExitWindowsEx Fails to Shut Down the System if Any Application Returns FALSE in Response to WM_QUERYENDSESSION =

Article ID: 277715

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT 4.0 Service Pack 6
 * Microsoft Windows NT 4.0 Service Pack 6a

-



This article was previously published under Q277715



SYMPTOMS
On a Windows NT 4.0 Service Pack 6 (SP6) or Windows NT 4.0 SP6a-based system, when any application calls the ExitWindowsEx function, the system sends the WM_QUERYENDSESSION message to all top-level windows. If any windows that receive the message return FALSE, the shutdown process is stopped, irrespective of how many windows return TRUE. Any subsequent calls to ExitWindowsEx fail to trigger a reboot or a shutdown operation.



RESOLUTION
Configure your applications to call the InitiateSystemShutdownEx function to reboot the system.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

