The LoadAccelerators function loads the specified accelerator table.
HACCEL LoadAccelerators(
HINSTANCE hInstance, |
// handle of application instance |
LPCTSTR lpTableName |
// address of table-name string |
); |
If the function succeeds, the return value is the handle of 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.
CopyAcceleratorTable, CreateAcceleratorTable, DestroyAcceleratorTable, MAKEINTRESOURCE