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 usingCode:if(CreateProcess("WaveRecorder.exe", // Application name procArgs, // Application arguments 0, 0, FALSE, CREATE_DEFAULT_ERROR_MODE, 0, 0, // Working directory &siStartupInfo, &piProcessInfo) == FALSE)
I get a running error...Code:WaitForSingleObject(piProcessInfo.hProcess, 0); ::CloseHandle(piProcessInfo.hThread); ::CloseHandle(piProcessInfo.hProcess);
ps: Is there a way to send a "\n" through a pipe? If the answer is yes, how can that be done?