LoadAccelerators

Syntax

HANDLE LoadAccelerators(hInstance,lpTableName)

This function loads the accelerator table named by the lpTableName parameter from the executable file associated with the module specified by the hInstance parameter.

The LoadAccelerators function loads the table only if it has not been previously loaded. Otherwise, it retrieves a handle to the loaded table.

Parameter Type/Description  

hInstance HANDLE Identifies an instance of the module whose executable file contains the accelerator table.  
lpTableName LPSTR Points to a string that names the accelerator table. The string must be a null-terminated character string.  

Return Value

The return value identifies the loaded accelerator table if the function is successful. Otherwise, it is NULL.