CreateAcceleratorTableA function

Creates an accelerator table.

Syntax

HACCEL CreateAcceleratorTableA(
  LPACCEL paccel,
  int     cAccel
);

Parameters

paccel

Type: LPACCEL

An array of ACCEL structures that describes the accelerator table.

cAccel

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]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See Also

ACCEL

Conceptual

CopyAcceleratorTable

DestroyAcceleratorTable

Keyboard Accelerators

LoadAccelerators

Reference

TranslateAccelerator