win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinCreateAccelTable (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINACCELERATORS
 
HACCEL WinCreateAccelTable(hab, pacct)
HAB hab;              /* handle of the anchor block                 */
PACCELTABLE pacct;    /* address of structure for accelerator table */
 
The WinCreateAccelTable function allocates an accelerator table with its
contents initialized to that of the specified ACCELTABLE structure.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies the anchor block.
 
pacct      Points to the ACCELTABLE structure that contains an accelerator
           table.
 
Return Value
 
The return value identifies an accelerator table.
 
Comments
 
When an application terminates it must call WinDestroyAccelTable to destroy
every accelerator table created by the call to the WinCreateAccelTable
function.
 
See Also
 
WinCopyAccelTable, WinDestroyAccelTable, WinQueryAccelTable,
WinSetAccelTable, ACCELTABLE