KbdFlushBuffer: Difference between revisions
Appearance
Created page with "==Description== Removes all entries from the keyboard buffer. This discards all user keystrokes typed ahead. ==Syntax== <PRE> #define INCL_KBD #include <os2.h> HKBD hkb..." |
mNo edit summary |
||
Line 11: | Line 11: | ||
return = KbdFlushBuffer(hkbd); | return = KbdFlushBuffer(hkbd); | ||
</PRE> | |||
==Parameters== | ==Parameters== | ||
; | ;hkbd (HKBD) - input : Reserved. Must be 0. | ||
==Return Code== | ==Return Code== | ||
return (APIRET) - returns | return (APIRET) - returns | ||
KbdFlushBuffer returns one of the following values: | KbdFlushBuffer returns one of the following values: | ||
* 0 NO_ERROR | |||
* 439 ERROR_KBD_INVALID_HANDLE | |||
* 445 ERROR_KBD_FOCUS_REQUIRED | |||
* 447 ERROR_KBD_KEYBOARD_BUSY | |||
* 504 ERROR_KBD_EXTENDED_SG | |||
[[Category:Kbd]] | |||
[[Category: |
Revision as of 02:36, 5 December 2016
Description
Removes all entries from the keyboard buffer. This discards all user keystrokes typed ahead.
Syntax
#define INCL_KBD #include <os2.h> HKBD hkbd; /* Reserved. Must be 0. */ APIRET return; /* Return code. */ return = KbdFlushBuffer(hkbd);
Parameters
- hkbd (HKBD) - input
- Reserved. Must be 0.
Return Code
return (APIRET) - returns
KbdFlushBuffer returns one of the following values:
- 0 NO_ERROR
- 439 ERROR_KBD_INVALID_HANDLE
- 445 ERROR_KBD_FOCUS_REQUIRED
- 447 ERROR_KBD_KEYBOARD_BUSY
- 504 ERROR_KBD_EXTENDED_SG