'Scuse me for being persistent, but can someone answer the following:

Why does a simple program like the following use wineserver's stdin/out/err
channels, not wine's?

        #include <stdio.h>
        int main()
        {
            printf("hello\n");
            return 0;
        }

I've compiled this with MSDEV6 and run it under wine in a different xterm to
where wineserver was running, and the output definitely appears to come out of
wineserver (the appropriate fd is passed over a UNIX domain socket for every
I/O operation wine performs).

Marcus Meissner wrote:
> They could have been changed using SetStdHandle().

Not so... I put a breakpoint in wine's implementation of this, and it
execution didn't pass through that.

> And the plain stdio stdin/stderr/stdout are not affected.

Also not so... see above test program.

Thanks,
David Howells

Reply via email to