Article ID: 819037 - Last Review: February 27, 2007 - Revision: 2.4

Computer Powers Off Unexpectedly If a Program Calls the ExitWindowsEx() Function

Expand all | Collapse all

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.

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 Small Business Server 2003 Standard Edition
  • Microsoft Windows Small Business Server 2003 Premium Edition
Keywords: 
kbprb KB819037
 

Article Translations