Jump to content

WinShutdownSystem: Difference between revisions

From EDM2
m Redirected page to OS2 API:PMI:WinShutdownSystem
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[OS2 API:PMI:WinShutdownSystem]]
Brings the system down.
 
==Syntax==
WinShutdownSystem(anchorBlockHndl, messageQueueHndl)
 
=== Parameters ===
;anchorBlockHndl - [[HAB]] - input : The anchor block handle.
;password - [[HMQ]] - input : The message queue handle.
 
=== Constants ===
 
=== Returns ===
This function returns a [[BOOL]] with the values of:
* [[TRUE]]
* [[FALSE]]
 
=== Define (C/C++) ===
INCL_WINWORKPLACE
 
=== Calling Convention ===
[[Cdecl32]]
 
=== Example Code ===
...
HAB  hab;
HMQ  hmq;
BOOL rc;
...
rc = WinShutdownSystem (hab, hmq);
...
 
=== Related Functions ===
*WinCancelShutdown
 
=== Notes ===
This call will close all running applications and call [[DosShutdown]].
 
All PM apps will receive a '''WM_SAVEAPPLICATION''' message before the '''WM_QUIT''' message.
 
[[Category:Win]]

Latest revision as of 03:00, 8 March 2017

Brings the system down.

Syntax

WinShutdownSystem(anchorBlockHndl, messageQueueHndl)

Parameters

anchorBlockHndl - HAB - input
The anchor block handle.
password - HMQ - input
The message queue handle.

Constants

Returns

This function returns a BOOL with the values of:

Define (C/C++)

INCL_WINWORKPLACE

Calling Convention

Cdecl32

Example Code

...
HAB   hab;
HMQ   hmq;
BOOL rc;
...
rc = WinShutdownSystem (hab, hmq);
...

Related Functions

  • WinCancelShutdown

Notes

This call will close all running applications and call DosShutdown.

All PM apps will receive a WM_SAVEAPPLICATION message before the WM_QUIT message.