This function is used to get the accelerator-table data corresponding to an accelerator-table handle, or to determine the size of the accelerator-table data.
#define INCL_WINACCELERATORS /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HACCEL hAccel; /* Accelerator-table handle. */ PACCELTABLE pacctAccelTable; /* Accelerator-table data area. */ ULONG ulCopyMax; /* Maximum data area size. */ ULONG ulCopied; /* Amount copied or size required. */ ulCopied = WinCopyAccelTable(hAccel, pacctAccelTable, ulCopyMax);