It looks like you correctly redirect the output and read it in your host application. This is confirmed by your observation on a console-only application. It looks like QEMU.EXE does not use the "real" console and standard output to be redirected. You cannot redirect it this way.
Generally, the whole idea of executing some application and trying to collaborate with it has very limited applicability. In practice, it works only for console applications, and small number of other application which use standard console. Ideally, you need to have the code of the functionality of QEMU.EXE in your own process. Processes are well isolated, executed in separate address spaces and are hard to collaborate with, unless they are specially designed for collaboration.
Please see this open-source project:
http://sourceforge.net/projects/qemuinterface[
^].
This is not exactly what you want, but you can look at the source code and learn how it works.
Besides, you can download source code of QEMU.EXE:
http://wiki.qemu.org/Download[
^].
What can you do with it? The options are:
- You can write a .NET port of it. :-)
- You use the source code to create a DLL and use it in your applications. One way of doing so is using P/Invoke:
http://en.wikipedia.org/wiki/P/invoke[^],
http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp[^].
This CodeProject article can also be useful: http://www.codeproject.com/csharp/EssentialPInvoke.asp[^]. - You can also use unmanaged DLL in another way. You can use C++/CLI and create a mixed mode project (managed + unmanaged). Such project can use unmanaged code and used by .NET assemblies exactly as any valid .NET assembly. You can wrap unmanaged code in managed "ref" classes, make them public and, this way, expose them to the referencing .NET assembly.
Please see:
http://en.wikipedia.org/wiki/C%2B%2B/CLI[^],
http://www.ecma-international.org/publications/standards/Ecma-372.htm[^],
http://www.gotw.ca/publications/C++CLIRationale.pdf[^],
http://msdn.microsoft.com/en-us/library/xey702bw.aspx[^].
Good luck.
—SA