| Comment | The normal way of redirecting console input and output under MS Windows is explained by Microsoft in the article "Creating a Child Process with Redirected Input and Output." The method used by Microsoft is a call to the CreateProcess API function with the standard handles redirected to pipes.
There are several problems with this method. One problem is that many Windows Console API functions will not work properly when the console is redirected in this way. The standard windows console handles point to Console Screen Buffer and Console Input Buffer objects, a pipe will only function equivalently to these objects when passed to ReadFile, WriteFile, or PeekNamedPipe.
WinPipe solves these problems by creating an easy programming interface where the child process executes with access to real console handles, but the parent application can read from and write to the child console. |
|---|