>> DECLARE SHORT GetExitCodeProcess IN WIN32API AS GetExitCodeProc ; >> INTEGER hProcess, ; >> @INTEGER lpdwExitCode >> LOCAL nRetunCode >> nReturnCode = 0 >> >> IF GetExitCodeProc(tnProcessToCheck, @nReturnCode) && HERE HERE >>>
> DECLARE SHORT GetExitCodeProcess IN WIN32API AS GetExitCodeProc ; > INTEGER hProcess, ; > INTEGER lpdwExitCode > > IF (GetExitCodeProc(tnProcessToCheck, nReturnCode) != 259) >>Also, for NT based system when you want to terminate a process, you must first open the process and set permission to terminate then you can terminate it.