Prev Next

CreateAcceleratorTable info  Overview  Group

The CreateAcceleratorTable function creates an accelerator table.

HACCEL CreateAcceleratorTable(

    LPACCEL lpaccl,

// pointer to structure array with accelerator data

    int cEntries 

// number of structures in the array

   );

Parameters

lpaccl
Points to an array of ACCEL structures that describes the accelerator table.
cEntries
Specifies the number of ACCEL structures in the array.

Return Values

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 must use the DestroyAcceleratorTable function to destroy each accelerator table that it created by using the CreateAcceleratorTable function.

See Also

ACCEL, CopyAcceleratorTable, DestroyAcceleratorTable, LoadAccelerators, TranslateAccelerator