CreateAcceleratorTable function
Creates an accelerator table.
Syntax
HACCEL WINAPI CreateAcceleratorTable(
_In_ LPACCEL lpaccl,
_In_ int cEntries
);
Parameters
- lpaccl [in]
-
Type: LPACCEL
An array of ACCEL structures that describes the accelerator table.
- cEntries [in]
-
Type: int
The number of ACCEL structures in the array. This must be within the range 1 to 32767 or the function will fail.
Return value
Type: HACCEL
If the function succeeds, the return value is the handle to the created accelerator table; otherwise, it is NULL. To get extended error information, call GetLastError.
Remarks
Before an application closes, it can use the DestroyAcceleratorTable function to destroy any accelerator tables that it created by using the CreateAcceleratorTable function.
Examples
For an example, see Creating User Editable Accelerators.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
CreateAcceleratorTableW (Unicode) and CreateAcceleratorTableA (ANSI) |
See also
- Reference
- ACCEL
- CopyAcceleratorTable
- DestroyAcceleratorTable
- LoadAccelerators
- TranslateAccelerator
- Conceptual
- Keyboard Accelerators