HANDLE LoadAccelerators(hinst, lpTableName) | |||||
HANDLE hinst; | /* handle of application instance | */ | |||
LPCTSTR lpTableName; | /* address of table-name string | */ |
The LoadAccelerators function loads the given accelerator table.
hinst
Identifies an instance of the module whose executable file contains the accelerator table to be loaded.
lpTableName
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.
The LoadAccelerators function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set).
CreateAcceleratorTable, CopyAcceleratorTable, DestroyAcceleratorTable