Re: CreateProcess - GetExitCodeProcess


2004-09-20 02:26:38 PM
delphi191
Hi,
Thank you very much .
I don't know how i missed that line at the documentation when i read it from
D5.
Wish You all the best .
Regards,
Zvia
"Rob Kennedy" <.>writes news:414e14eb$XXXX@XXXXX.COM...
Quote
zvia writes:
>From debug i get 2 and in the other way i get 259.
>
>when i added the sleep command before the GetExitCodeProcess it's
return
>the right exist code which is 2 .

Go read the documentation for GetExitCodeProcess again. Pay particular
attention to the Remarks section, which tells you what the function
returns when the process hasn't terminated yet.


msdn.microsoft.com/library/en-us/dllproc/base/getexitcodeprocess.asp

--
Rob