This function creates an accelerator table from the accelerator definitions in memory.
#define INCL_WINACCELERATORS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ PACCELTABLE pacctAccelTable; /* Accelerator table. */ HACCEL haccelhAccel; /* Accelerator-table handle. */ haccelhAccel = WinCreateAccelTable(hab, pacctAccelTable);