Article ID: 819037 - Last Review: February 27, 2007 - Revision: 2.4 Computer Powers Off Unexpectedly If a Program Calls the ExitWindowsEx() FunctionSYMPTOMSIf a program calls the ExitWindowsEx() function and the EWX_SHUTDOWN flag is used, Windows may turn off the power instead of displaying the “It is now safe to power off your computer” message. CAUSEIn Windows XP Service Pack 1 (SP1) and the Windows Server 2003 family, Windows treats the EWX_SHUTDOWN flag the same as the EWX_POWEROFF flag. That is, Windows turns off the power after it shuts down the computer if the computer supports the power-off feature. MORE INFORMATIONThis behavior also occurs if the InitiateSystemShutdownEx() function is used to shut down the computer if the computer supports the power-off feature. APPLIES TO
| Article Translations
|
Back to the top
