Reads a key, mouse event, or a notification from the console.

#define INCL_KBD
#include <os2.h>

PVOID     Data;    /*  Pointer to event data. */
PULONG    Kind;    /*  Kind of event returned. */
ULONG     Flag;    /*  Wait for a keystroke flag. */
HKBD      hkbd;    /*  Reserved.  Must be 0. */
APIRET    return;  /*  Return code. */

return = KbdGetConsole(Data, Kind, Flag, hkbd);


[Back] [Next]