Terminates a program started with WinStartApp.
- appHndl - HAPP - input
- The application handle as returned by WinStartApp.
Possible error codes from WinGetLastError:
INCL_WINWINDOWMGR or INCL_WIN or INCL_PM
HAPP appHndl; BOOL rc; ... rc = WinTerminateApp(appHndl); ...
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.