FlushConsoleInputBuffer function kernel32
Flushes the console input buffer. All input records currently in the input buffer are discarded.
BOOL FlushConsoleInputBuffer(
_In_ HANDLE hConsoleInput
);
Implementation
int FlushConsoleInputBuffer(int hConsoleInput) =>
_FlushConsoleInputBuffer(hConsoleInput);