I found this and this examples to start a Child process with redirected stdin and stdout, but both of them seem to be really outdated and c-based.(using HANDLE and stuff)
Are there any ways to do that with more c++? (Windows, if possible)
_popen() function is close, but it uses FILE* and only allows stdin OR stdout, not both at the same time.