CreateProcess() - send to process
I'm using CreateProcess() to start a new process that is going to record the sound from the sound card, using the following code:
My WaveRecorder is going to need an "Enter" to stop recording. How can I send an "\n" to this process? Because if I try using
if(CreateProcess("WaveRecorder.exe", // Application name
procArgs, // Application arguments
0, // Working directory
&piProcessInfo) == FALSE)
I get a running error...
ps: Is there a way to send a "\n" through a pipe? If the answer is yes, how can that be done?