For convenience, I am hacking the ptpCamGui code to test certain aspects of a child process.
(I will refer to ptpcamGui as AU3).
AU3 calls createConsole() in the DLL to spawn the ptpcam child process.
It creates pipes to it and redirects ptpcam STDIO to itself.
In ptpcam, you read and write using STDIN and STDOUT as usual.
I have some code in ptpcam that is in an endless loop, checking the input buffer for a character every 100 msec using PeekConsoleInput().
When a character is received it continues with the rest of the code.
That works fine in console mode but not with AU3.
First of all, should PeekConsoleInput() still work with a redirected input ?
Even though there is an option to display ptpcam console it is of limited use because its output is redirected.
Is there any way to display debugging info on the ptpcam console ?