Returns a keyboard-character data record, if available, but does not remove it from the queue.
#define INCL_KBD #include <os2.h> PKBDKEYINFO CharData; /* Pointer to character data. */ HKBD hkbd; /* Reserved. Must be 0. */ APIRET rc; /* Return code. */ rc = KbdPeek(CharData, hkbd);