redirecting stdout with WineLib

Alexandre Julliard julliard at
Thu Mar 25 11:26:13 CST 2004

Ferenc Wagner <wferi at> writes:

> Hacking away on winetest I encountered the following
> problem: under Windows and Wine (running cross compiled
> binaries) it's possible to redirect the stdout of a child
> process with CreateProcess using STARTF_USESTDHANDLES.
> However, if I CreateProcess an from the WineLib
> version, the redirection is ignored.  The create_process
> function in process.c acts on this option in both cases, but
> I didn't investigate further.  Does anybody have an idea why
> this happens?

The Windows std handles get redirected but not the Unix ones, so if
the Winelib app is using Unix stdio functions the redirection won't
have any effect.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list