Hi,
I'm using CreateProcess() to start a new process that is going to record the sound from the sound card, using the following code:
Code:
if(CreateProcess("WaveRecorder.exe", // Application name
procArgs, // Application arguments
0,
0,
FALSE,
CREATE_DEFAULT_ERROR_MODE,
0,
0, // Working directory
&siStartupInfo,
&piProcessInfo) == FALSE)
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
Code:
WaitForSingleObject(piProcessInfo.hProcess, 0);
::CloseHandle(piProcessInfo.hThread);
::CloseHandle(piProcessInfo.hProcess);
I get a running error...
Best regards,
Alex.
ps: Is there a way to send a "\n" through a pipe? If the answer is yes, how can that be done?