WinTerminateApp: Difference between revisions
Appearance
m corrected links |
m formatting |
||
Line 1: | Line 1: | ||
== WinTerminateApp == | == WinTerminateApp == | ||
; WinTerminateApp(appHndl) : | ; WinTerminateApp(appHndl) : Terminates a program started with [[OS2_API:WinStartApp|WinStartApp]]. | ||
Terminates a program started with [[OS2_API:WinStartApp|WinStartApp]]. | |||
=== Parameters === | === Parameters === | ||
; appHndl - [[OS2_API:DataType:HAPP|HAPP]] - input : | ; appHndl - [[OS2_API:DataType:HAPP|HAPP]] - input : The application handle as returned by [[OS2_API:WinStartApp|WinStartApp]]. | ||
The application handle as returned by [[OS2_API:WinStartApp|WinStartApp]]. | |||
=== Constants === | === Constants === |
Revision as of 04:07, 1 May 2006
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 or INCL_WIN or INCL_PM
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.