INF: Ending the Windows Session from an Application

ID Number: Q75629

3.00

WINDOWS

Summary:

The ExitWindows() function is provided to permit an application to

close Windows.

In previous versions of Windows, an application sent the WM_ENDSESSION

message to all windows to close the Windows session. Starting with

version 3.0, ExitWindows() puts Windows into a special state so that

Windows can perform housekeeping and unhook system interrupts to

cleanly exit to DOS. Because an application cannot simulate this

Windows special state, the application must call the ExitWindows()

function to close Windows.

For more information on the ExitWindows() function, see page 4-130 of

the "Microsoft Windows Software Development Kit Reference Volume 1."