This function queries the window or queue accelerator table.
#define INCL_WINACCELERATORS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ HWND hwndFrame; /* Frame-window handle. */ HACCEL haccelAccel; /* Accelerator-table handle. */ haccelAccel = WinQueryAccelTable(hab, hwndFrame);