fmuecke / PipedProcess

C++ helper class to create a process that redirects std in/out/error streams of a child process (Windows API)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PipedProcess

C++ helper class to create a child process with redirected std in/out/error streams using the Windows API.

What it does

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.

What it does not

Currently the class can not be used for asynchronous communication (e.g. messages) to and from the child process.

MIT License

Feel free to use. See LICENSE file for further information.

How to build

The project is a Visual Studio 2022 solution. It should be possible to build it with other compilers, but I have not tested it.

Create nuget package

  1. Get CoApp script from https://coapp.github.io/pages/releases.html

  2. Install CoApp

  3. Run the following command to create the NuGet package

    Write-NuGetPackage .\PipedProcess.autopkg

About

C++ helper class to create a process that redirects std in/out/error streams of a child process (Windows API)

License:MIT License


Languages

Language:C++ 100.0%