DestroyAcceleratorTable function (Windows)

Switch View :
ScriptFree
DestroyAcceleratorTable function

Applies to: desktop apps only

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

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
CopyAcceleratorTable
CreateAcceleratorTable
LoadAccelerators
TranslateAccelerator
Conceptual
Keyboard Accelerators

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012