This function gets or sets the keyboard state.

#define INCL_WININPUT /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND     hwndDeskTop;      /*  Desktop-window handle. */
PBYTE    abKeyStateTable;  /*  Key state table. */
BOOL     fSet;             /*  Set indicator. */
BOOL     rc;               /*  Success indicator. */

rc = WinSetKeyboardStateTable(hwndDeskTop,
       abKeyStateTable, fSet);


[Back] [Next]