Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

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

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

Unicode and ANSI names

CreateAcceleratorTableW (Unicode) and CreateAcceleratorTableA (ANSI)

See also

Reference
ACCEL
CopyAcceleratorTable
DestroyAcceleratorTable
LoadAccelerators
TranslateAccelerator
Conceptual
Keyboard Accelerators

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.