I have an application that uses CreateProcess to launch 1 or more child processes. These processes take command line arguments to configure them, and that all seems to work fine.
The problems I am having is that I want to redirect the StdOut and StdErr output from the command line application to a (log) file. I am using CreateFile to create a file handle that is passes to CreateProcess. I see the file getting created on, but nothing ever gets written to the file.