I am using QuickWin to display the output from a console program. I have used CreatePipe to set up an input and an output pipe for the console's hStdInput and hStdOutput. The two pipes are used by the Quickwin program to send and recieve from the console. The console is launched hidden via CreateProcess with wShowWindow = SW_HIDE. Now that I've given the scenario, here's my problem.
The hidden console's output displays fine on the Quickwin application. When I use WriteFile to send string data to the console, that also appears to work. However, if I press ENTER which is read by key = GetCharQQ(), the console does not respond by accepting the previous string data as the input to continue it's computations. How can I send the ENTER keystroke to the console via the annonymous pipe using WriteFile?