CreateAcceleratorTable

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

DestroyAcceleratorTable
LoadAccelerators
TranslateAccelerator
ACCEL
Keyboard Functions