This function creates an accelerator table.
At a Glance
Header file: | Winuser.h |
Versions: | 1.0 and later |
Syntax
HACCEL CreateAcceleratorTable(LPACCEL lpaccel, int cEntries);
Parameters
lpaccl
Long pointer to an array of ACCEL structures that describes the accelerator table.
cEntries
Specifies the number of ACCEL structures in the array.
Return Values
The handle to the created accelerator table indicates success. NULL indicates failure. To get extended error information, call GetLastError.
Remarks
Before an application closes, it must use the DestroyAcceleratorTable function to destroy each accelerator table that it created by using the CreateAcceleratorTable function.
See Also
ACCEL, DestroyAcceleratorTable, LoadAccelerators, TranslateAccelerator