I'm thinking of writing utility functions that are intended to be like the POSIX popen(3), but with an argv, an environ (maybe), and I/O redirections. Your documentation sheds all the light I needed as to I/O redirections, but I don't really know how to properly encode an argv into an lpCommandLine, or if it is even possible (well, _spawn() must be doing it, no?).
I'm thinking of writing utility functions that are intended to be like the POSIX
popen(3), but with anargv, anenviron(maybe), and I/O redirections. Your documentation sheds all the light I needed as to I/O redirections, but I don't really know how to properly encode anargvinto anlpCommandLine, or if it is even possible (well,_spawn()must be doing it, no?).