Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DestroyAcceleratorTable function

Destroys an accelerator table.

Syntax


BOOL WINAPI DestroyAcceleratorTable(
  _In_ HACCEL hAccel
);

Parameters

hAccel [in]

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.

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

See also

Reference
CopyAcceleratorTable
CreateAcceleratorTable
LoadAccelerators
TranslateAccelerator
Conceptual
Keyboard Accelerators

 

 

Community Additions

ADD
Show:
© 2015 Microsoft