Microsoft KB Archive/819037

= Computer Powers Off Unexpectedly If a Program Calls the ExitWindowsEx Function =

Article ID: 819037

Article Last Modified on 2/27/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition

-



SYMPTOMS
If 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.



CAUSE
In 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 INFORMATION
This behavior also occurs if the InitiateSystemShutdownEx function is used to shut down the computer if the computer supports the power-off feature.

Additional query words: Win2003

Keywords: kbprb KB819037

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.