title: CreateProcess with redirection access denied on the output pipe
body: <p>I have a simple code running in a DLL called from MFC application. Generally it implements the example that is shown in msdn article - <a href="http://msdn.microsoft.com/en-us/library/ms682499%28VS.85%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms682499%28VS.85%29.aspx</a>. Except I just want to create any process (say shell script). All the process creation is done fine with no errors. However, ReadFile with the output pipe always fails with error <strong>5:Access is denied</strong>. Making the same calls in a regular Win32 console application runs fine.</p>
  
  <p>Please help.
  -Ilya.</p>