I would like to programmatically start a child program and have its output directed to memory versus the screen. For example, let’s say I want to have the output of the program “ipconfig” be directed into a buffer in memory vice having it display the results on the monitor. I know how to create a child process and wait for it’s completion, I know how to create memory space via the heap, however I don’t know how to:
1) redirect the output to memory
2) Have the heap area increased as more memory is needed for the ouput (for example, assume I don’t know the number of lines needed to output the command “ipconfig /all”.
I’d greatly appreciate any help that can be provided.
Thanks,
Jerry
1) redirect the output to memory
2) Have the heap area increased as more memory is needed for the ouput (for example, assume I don’t know the number of lines needed to output the command “ipconfig /all”.
I’d greatly appreciate any help that can be provided.
Thanks,
Jerry