Share via


CreateAcceleratorTable (Compact 2013)

3/28/2014

This function creates an accelerator table.

Syntax

HACCEL CreateAcceleratorTable(
  LPACCEL lpaccl, 
  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 Value

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.

Requirements

Header

winuser.h

Library

Accel.lib

See Also

Reference

Keyboard Functions
DestroyAcceleratorTable
LoadAccelerators
TranslateAccelerator
ACCEL