Jump to content

KbdFlushBuffer: Difference between revisions

From EDM2
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..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Description==
Removes all entries from the keyboard buffer. This discards all user keystrokes typed ahead.
Removes all entries from the keyboard buffer. This discards all user keystrokes typed ahead.


==Syntax==
==Syntax==
<PRE>
KbdFlushBuffer(hkbd)
#define INCL_KBD
#include <os2.h>


HKBD     hkbd;    /*  Reserved. Must be 0. */
==Parameters==
APIRET    return;  /*  Return code. */
;hkbd ([[HKBD]]) - input: Reserved. Must be 0.


return = KbdFlushBuffer(hkbd);
</PRE>
==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:
 
::0 NO_ERROR
KbdFlushBuffer returns one of the following values:
::439 ERROR_KBD_INVALID_HANDLE
 
::445 ERROR_KBD_FOCUS_REQUIRED
* 0         NO_ERROR  
::447 ERROR_KBD_KEYBOARD_BUSY
* 439       ERROR_KBD_INVALID_HANDLE  
::504 ERROR_KBD_EXTENDED_SG
* 445       ERROR_KBD_FOCUS_REQUIRED  
* 447       ERROR_KBD_KEYBOARD_BUSY  
* 504       ERROR_KBD_EXTENDED_SG
 
==Remarks==
 
 
==Example Code==
<PRE>
 
</PRE>
==Related Functions==
 
 


[[Category:The OS/2 API Project]]
[[Category:Kbd]]

Latest revision as of 03:07, 2 January 2020

Removes all entries from the keyboard buffer. This discards all user keystrokes typed ahead.

Syntax

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