CreateProcess: add stdin/out/err redirection
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Fri, 28 Aug 2015 08:31:22 +0000 (10:31 +0200)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Fri, 28 Aug 2015 08:41:23 +0000 (10:41 +0200)
commit72f13aeacbf2c508d02857c2b8e2372d418d5937
tree8c9f36c7a2809a2802876533eb86d1677bac1a25
parentc0d1f5bac1fb1228f9513156e3937a4fe715084f
CreateProcess: add stdin/out/err redirection

When launching a new process stdin/stdout/stderr can be redirected by
passing the corresponding HANDLEs in the passed lpStartupInfo structure.
This is required for example if a pipe should be used as stdin/stdout.

If set in lpStartupInfo the file descriptor of the passed handle is
now used. The test was updated accordingly.
winpr/libwinpr/thread/process.c
winpr/libwinpr/thread/test/TestThreadCreateProcess.c