DestroyAcceleratorTable function (winuser.h)

Destroys an accelerator table.

Syntax

BOOL DestroyAcceleratorTable(
  [in] HACCEL hAccel
);

Parameters

[in] hAccel

Type: HACCEL

A handle to the accelerator table to be destroyed. This handle must have been created by a call to the CreateAcceleratorTable or LoadAccelerators function.

Return value

Type: BOOL

If the function succeeds, the return value is nonzero. However, if the table has been loaded more than one call to LoadAccelerators, the function will return a nonzero value only when DestroyAcceleratorTable has been called an equal number of times.

If the function fails, the return value is zero.

Requirements

Requirement Value
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

Conceptual

CopyAcceleratorTable

CreateAcceleratorTable

Keyboard Accelerators

LoadAccelerators

Reference

TranslateAccelerator