JCL Help:TerminateTask
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: TerminateTask Function
Search in JCL Help
Search in all projects
Summary
Terminates the application which owns the specified window.
Pascal
function TerminateTask(Wnd: THandle; Timeout: Integer): TJclTerminateAppResult;
Parameters
Parameters | Description |
Wnd: THandle | Handle to a top-level window owned by the application you wish to terminate. |
Timeout: Integer | Timeout value, in milliseconds, indicating the time to wait between sending the WM_CLOSE message and forcefully terminating the application. You should set this timeout value to at least 5 seconds. |
Return Value
If the function succeeds to normally terminate the application (through the WM_CLOSE message) it returns taClean. If the function had to terminate the application by a call to TerminateProcess it returns taKill. If the function fails to terminate the application it returns taError.
Description
Terminates the application which owns the specified window. For further details see the TerminateApp function/
About
Unit
Donator
Petr Vones
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page