Código Delphi [-]GetExitcodeProcess(h[k],ExitCode); if exitCode<>STILL_ACTIVE then begin
GetExitcodeProcess(h[k],ExitCode); if exitCode<>STILL_ACTIVE then begin