WinTerminateApp: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinTerminateApp to WinTerminateApp |
No edit summary |
||
Line 17: | Line 17: | ||
INCL_WINWINDOWMGR or INCL_WIN or INCL_PM | INCL_WINWINDOWMGR or INCL_WIN or INCL_PM | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
Revision as of 19:13, 18 January 2017
WinTerminateApp
- WinTerminateApp(appHndl)
- Terminates a program started with WinStartApp.
Parameters
- appHndl - HAPP - input
- The application handle as returned by WinStartApp.
Returns
Returns BOOL:
Possible error codes from WinGetLastError:
Define (C/C++)
INCL_WINWINDOWMGR or INCL_WIN or INCL_PM
Calling Convention
Example Code
HAPP appHndl; BOOL rc; ... rc = WinTerminateApp(appHndl); ...
Related Functions
Notes
This function works only if SAF_STARTCHILDAPP is specified at program start. The notify window handle specified in WinStartApp will receive the WM_APPTERMINATENOTIFY message. This function must be called from the same process that called WinStartApp. This function requires the existence of a message queue on the calling thread.