Question:
How can I make my program totally exit Windows? When the user hits “Quit Windows”, I want Windows to exit.
Answer:
Use the ExitWindows API function. The declare statement is in the Windows 3.1 API declaration help file, and the documentation on how to use the function is in the Windows 3.1 SDK help file.