Microsoft KB Archive/220706

{|
 * width="100%"|

INFO: ExitWindowsEx Does Not Shut Down or Restart Win 95/98

 * }

Q220706

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), included with:
 * Microsoft Windows 95
 * Microsoft Windows 98

-

SUMMARY
When you use the ExitWindowsEx API on Windows 95 and Windows 98 to shut down or log off the computer, the action fails intermittently on some rare hardware or driver configurations.

MORE INFORMATION
This behavior is caused by the design of the hardware or driver.

In most cases, a cooperative (user-initiated) log off or shutdown is recommended for Windows 95 and Windows 98.

In cases where the application must initiate shutdown or log off, it is recommended that you use the ExitWindowsEx API to implement a non-forced programmatic log off or shutdown. A non-forced log off or shutdown allows users to save their work and settings.