xHarbour Reference Documentation > Function Reference |
Closes a child process
HB_CloseProcess( <nProcessHandle>, ; [<lWaitForTermination>] ) --> lSuccess
The function returns .T. (true) when the child process has successfully ended program execution, otherwise .F. (false) is returned.
The function waits for the end of program execution in a child process previously opened with HB_OpenProcess(). If the child process is still executing its program, HB_CloseProcess() waits for the termination of the program running in the child process, unless <lWaitForTermination> is set to .F. (false).
Use function HB_ProcessValue() to determine if a child process is still executing its program.
Note: when program execution in the child process has ended, the handle <nProcessHandle> must be explicitly closed by passing it to FClose().
See also: | HB_OpenProcess(), HB_ProcessValue(), StopThread(), QUIT |
Category: | Process functions , xHarbour extensions |
Source: | rtl\philes.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com