The LoadAccelerators function loads the specified accelerator table.
HACCEL LoadAccelerators(
HINSTANCE hInstance, // handle to application instance
LPCTSTR lpTableName // address of table-name string
);
If the function succeeds, the return value is the handle to the loaded accelerator table.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
If the accelerator table has not yet been loaded, the function loads it from the specified executable file.
Accelerator tables loaded from resources are freed automatically when the application terminates.
Windows CE: The resource is not copied into RAM, so it may not be modified.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Keyboard Accelerators Overview, Keyboard Accelerator Functions, CopyAcceleratorTable, CreateAcceleratorTable, DestroyAcceleratorTable, MAKEINTRESOURCE