The application to terminate must have been started using the WinStartApp function with the SAF_STARTCHILDAPP option specified.

If the specified application does not stop, this function returns TRUE. To ensure that the application has terminated, the application calling WinTerminateApp must wait for the appropriate message to be posted to the window specified in the WinStartApp function.

The WinTerminateApp function must be called from the same process as the WinStartApp function.

This function requires the existence of a message queue.


[Back] [Next]