Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:docs:fapi:kbdflushbuffer [2018/08/31 14:57] – created prokushev | en:docs:fapi:kbdflushbuffer [2021/09/18 15:20] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==Description== | + | {{page> |
| + | |||
| + | ====== KbdFlushBuffer ====== | ||
| This call clears the keystroke buffer. | This call clears the keystroke buffer. | ||
| - | ==Syntax== | + | ===== Syntax ===== |
| + | <code c> | ||
| | | ||
| + | </ | ||
| + | ===== Parameters ===== | ||
| - | ==Parameters== | + | * KbdHandle ([[HKBD]]) - input : Default keyboard or the logical keyboard. |
| - | ; | + | |
| - | ==Return Code== | + | ===== Return Code ===== |
| - | rc (USHORT) - return | + | |
| + | rc ([[USHORT]]) - return | ||
| Return code descriptions are: | Return code descriptions are: | ||
| - | * 0 NO_ERROR | ||
| - | * 439 ERROR_KBD_INVALID_HANDLE | ||
| - | * 445 ERROR_KBD_FOCUS_REQUIRED | ||
| - | * 447 ERROR_KBD_KEYBOARD_BUSY | ||
| - | * 464 ERROR_KBD_DETACHED | ||
| - | * 504 ERROR_KBD_EXTENDED_SG | ||
| - | ==Remarks== | + | * 0 NO_ERROR |
| + | * 439 ERROR_KBD_INVALID_HANDLE | ||
| + | * 445 ERROR_KBD_FOCUS_REQUIRED | ||
| + | * 447 ERROR_KBD_KEYBOARD_BUSY | ||
| + | * 464 ERROR_KBD_DETACHED | ||
| + | * 504 ERROR_KBD_EXTENDED_SG | ||
| + | |||
| + | ===== Remarks ===== | ||
| KbdFlushBuffer completes when the handle has access to the physical keyboard (focus), or is equal to zero and no other handle has the focus. | KbdFlushBuffer completes when the handle has access to the physical keyboard (focus), or is equal to zero and no other handle has the focus. | ||
| - | ===Family API Considerations=== | + | ==== Family API Considerations ==== |
| Some options operate differently in the DOS mode than in the OS/2 mode. The KbdHandle is ignored when coding in the DOS mode. | Some options operate differently in the DOS mode than in the OS/2 mode. The KbdHandle is ignored when coding in the DOS mode. | ||
| - | ==Example Code== | + | ===== Bindings ===== |
| - | ===C Binding=== | + | |
| - | <PRE> | + | ==== C Binding ==== |
| + | |||
| + | <code c> | ||
| #define INCL_KBD | #define INCL_KBD | ||
| Line 34: | Line 45: | ||
| HKBD KbdHandle; | HKBD KbdHandle; | ||
| USHORT | USHORT | ||
| - | </PRE> | + | </code> |
| + | |||
| + | ==== MASM Binding ==== | ||
| - | ===MASM Binding=== | + | <code asm> |
| - | <PRE> | + | |
| EXTRN KbdFlushBuffer: | EXTRN KbdFlushBuffer: | ||
| INCL_KBD | INCL_KBD | ||
| Line 45: | Line 57: | ||
| Returns WORD | Returns WORD | ||
| - | </PRE> | + | </code> |
| - | ====== Note ====== | + | ===== Note ===== |
| Text based on [[http:// | Text based on [[http:// | ||




