C++ helper class to create a child process with redirected std in/out/error streams using the Windows API.
It can be used to pass arbitrary binary input data to the child process via stdin and retrieve the result data via stdout. Errors can be received via stderr.
Currently the class can not be used for asynchronous communication (e.g. messages) to and from the child process.
Feel free to use. See LICENSE
file for further information.
The project is a Visual Studio 2022 solution. It should be possible to build it with other compilers, but I have not tested it.
-
Get CoApp script from https://coapp.github.io/pages/releases.html
-
Install CoApp
-
Run the following command to create the NuGet package
Write-NuGetPackage .\PipedProcess.autopkg