Microsoft KB Archive/64932

INF: Sample Program That Forces a System Shutdown in OS/2 1.21 PSS ID Number: Q64932 Article last modified on 09-06-1991 PSS database name: P_PresMan

1.21

OS/2

Summary:

A program in the Software/Data Library named SHUTDOWN demonstrates how to force a system shutdown similar to what happens if the user selects the Desktop Manager’s Shutdown menu item (on the Desktop menu). It does this by forcing a WM_COMMAND message to the Desktop Manager. This is specific to version 1.21 of OS/2. The code probably will need to be changed in future versions of the system.

For more details, please refer to the comments in the internal routine ShutDown.

SHUTDOWN can be found in the Software/Data Library by searching on the word SHUTDOWN, the Q number of this article, or S12675. SHUTDOWN was archived using the PKware file-compression utility.

Copyright Microsoft Corporation 1991.