seems to be what I need but I got the following error
too many arguments
DECLARESHORT GetExitCodeProcess IN WIN32API AS GetExitCodeProc ;
INTEGER hProcess, ;
@INTEGER lpdwExitCode
LOCAL nRetunCode
nReturnCode = 0IF GetExitCodeProc(tnProcessToCheck, @nReturnCode) && HERE HERE