Jump to content

KbdFlushBuffer: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
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.


Line 7: Line 6:
#include <os2.h>
#include <os2.h>


HKBD      hkbd;   /*  Reserved.  Must be 0. */
HKBD      hkbd;
APIRET    return; /*  Return code. */
APIRET    return;


return = KbdFlushBuffer(hkbd);
return = KbdFlushBuffer(hkbd);
Line 14: Line 13:


==Parameters==
==Parameters==
;hkbd (HKBD) - input : Reserved. Must be 0.
;hkbd ([[HKBD]]) - input : Reserved. Must be 0.


==Return Code==
==Return Code==

Revision as of 01:47, 8 January 2017

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

Syntax

#define INCL_KBD
#include <os2.h>

HKBD      hkbd;
APIRET    return;

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