CopyAcceleratorTableA function

Copies the specified accelerator table. This function is used to obtain the accelerator-table data that corresponds to an accelerator-table handle, or to determine the size of the accelerator-table data.

Syntax

int CopyAcceleratorTableA(
  HACCEL  hAccelSrc,
  LPACCEL lpAccelDst,
  int     cAccelEntries
);

Parameters

hAccelSrc

Type: HACCEL

A handle to the accelerator table to copy.

lpAccelDst

Type: LPACCEL

An array of ACCEL structures that receives the accelerator-table information.

cAccelEntries

Type: int

The number of ACCEL structures to copy to the buffer pointed to by the lpAccelDst parameter.

Return Value

Type: int

If lpAccelDst is NULL, the return value specifies the number of accelerator-table entries in the original table. Otherwise, it specifies the number of accelerator-table entries that were copied.

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

CreateAcceleratorTable

DestroyAcceleratorTable

Keyboard Accelerators

LoadAccelerators

Reference

TranslateAccelerator