WinTerminateApp: Difference between revisions
Appearance
Created |
m Corrected PMI error code links |
||
Line 15: | Line 15: | ||
Possible error codes from [[OS2_API:WinGetLastError|WinGetLastError]]: | Possible error codes from [[OS2_API:WinGetLastError|WinGetLastError]]: | ||
* [[OS2_API:Constant: | * [[OS2_API:Constant:PMI:error#PMERR_INVALID_HAPP|PMERR_INVALID_HAPP]] | ||
* [[OS2_API:Constant: | * [[OS2_API:Constant:PMI:error#PMERR_CANNOT_STOP|PMERR_CANNOT_STOP]] | ||
=== Module === | === Module === |
Revision as of 06:53, 19 October 2005
WinTerminateApp
- WinTerminateApp(appHndl)
Terminates a program started with WinStartApp.
Parameters
- appHndl - HAPP - input
The application handle as returned by WinStartApp.
Constants
Returns
Returns BOOL:
Possible error codes from WinGetLastError:
Module
Define (C/C++)
INCL_WINWINDOWMGR
Export name/Ordinal
Calling conversion
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.