HACCEL LoadAccelerators(hinst, lpszTableName) | |||||
HINSTANCE hinst; | /* handle of module to load from | */ | |||
LPCSTR lpszTableName; | /* address of table name | */ |
The LoadAccelerators function loads the specified accelerator table.
hinst
Identifies an instance of the module whose executable file contains the accelerator table to be loaded.
lpszTableName
Points to a null-terminated string that names the accelerator table to be loaded.
The return value is the handle of the loaded accelerator table if the function is successful. Otherwise, it is NULL.
If the accelerator table has not yet been loaded, the function loads it from the given executable file.
Accelerator tables loaded from resources are freed automatically when the application terminates.