I\'m trying to do something which I think should be simple: do a blocking read from standard input, but timing out after a specified interval if no data is available.
You'll need the GetStdHandle function to obtain a handle to the console, then you can use WaitForSingleObject to wait for an event to happen on that handle, with a timeout.