How to use open files after WinCRT spawn call

41 Views Asked by At

There is a spawn* function family in WinCRT library. The doc says that

Files that are open when a _spawn call is made remain open in the new process.

I'm wondering how can I use open files after spawn call (except stdin/out/err). It seems like there are open file handles/descriptors which are available in a child process. How can a child recognize which descriptor to use? Should I pass any custom info in addition to C_FILE_INFO?

0

There are 0 best solutions below