[fpc-pascal] Redirecting input to a child process

Anton Shepelev anton.txt at gmail.com
Mon May 9 00:21:57 CEST 2011

I wrote:

> I'll try duplicating the handles and report the results.

Yes.  It  works  now. I am creating a non-inheritable handle
using CreatePipe, then duplicating it to an inheritable  one
using   DuplicateHandle   and  pass  the  duplicate  to  the
CreateProcess funtion.

Does this mean that the Windows implementation  of  TProcess
should be rewritten using DuplicateHandle?

Thanks everybody for your help.

More information about the fpc-pascal mailing list