views:

228

answers:

1

Hello:

I have a simple code running in a DLL called from MFC application. Generally it implements the example that is shown in msdn article - http://msdn.microsoft.com/en-us/library/ms682499%28VS.85%29.aspx. 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 5:Access is denied. Making the same calls in a regular Win32 console application runs fine.

Please help. -Ilya.