Jump to content

WinTerminateApp: Difference between revisions

From EDM2
m formatting
mNo edit summary
Line 42: Line 42:


=== OS Version Introduced ===
=== OS Version Introduced ===
[[OS2_API | Back to OS/2 API]]
[[Category:The OS/2 API Project]]

Revision as of 05:56, 30 October 2011

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

Cdecl32

Example Code

HAPP    appHndl;
BOOL    rc;
...
rc = WinTerminateApp(appHndl);
...

Related Functions

WinStartApp

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.

OS Version Introduced

Back to OS/2 API