FlushConsoleInputBuffer function
Flushes the console input buffer. All input records currently in the input buffer are discarded.
Syntax
BOOL WINAPI FlushConsoleInputBuffer( _In_ HANDLE hConsoleInput );
Parameters
- hConsoleInput [in]
-
A handle to the console input buffer. The handle must have the GENERIC_WRITE access right. For more information, see Console Buffer Security and Access Rights.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- Console Functions
- Low-Level Console Input Functions
- GetNumberOfConsoleInputEvents
- PeekConsoleInput
- ReadConsoleInput
- WriteConsoleInput
Send comments about this topic to Microsoft
Build date: 10/27/2012