BOOL FlushConsoleInputBuffer( hConsoleInput) | |||||
HANDLE hConsoleInput; | /* identifies input buffer to flush | */ |
The FlushConsoleInputBuffer function flushes the console input buffer. All input records currently in the input buffer are discarded.
hConsoleInput
Supplies an open input handle to the console input buffer. The handle must have been opened with GENERIC_WRITE access.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
ReadConsoleInput, WriteConsoleInput