BOOL EnumResourceLanguages(hModule, lpszType, lpszName, lpEnumFunc, lParam) | |||||
HANDLE hModule; | /* module containing resources | */ | |||
LPCTSTR lpszType; | /* resource name | */ | |||
LPCTSTR lpszName; | /* resource type | */ | |||
ENUMRESLANGPROC lpEnumFunc; | /* address of callback function | */ | |||
LONG lParam; | /* application-defined parameter | */ |
The EnumResourceLanguages function searches a module for each resource of the specified type and name. For each resource it locates, the function passes the language of the resource to a user-defined callback function.
hModule
Identifies the module whose executable file contains the resource languages to be enumerated. If this parameter is NULL, the function enumerates the resources in the image file that was used to create the current process.
lpszType
Points to a null-terminated string that represents the type of the resource being enumerated. For predefined resource types, this parameter will be one of the following values:
Value | Meaning |
RT_ACCELERATOR | Accelerator table |
RT_BITMAP | Bitmap resource |
RT_DIALOG | Dialog box |
RT_FONT | Font resource |
RT_FONTDIR | Font directory resource |
RT_MENU | Menu resource |
RT_RCDATA | User-defined resource (raw data) |
RT_STRING | String-table entry |
RT_MESSAGETABLE | Message-table entry |
RT_CURSOR | Hardware-dependent cursor resource |
RT_GROUP_CURSOR | Hardware-independent cursor resource |
RT_ICON | Hardware-dependent icon resource |
RT_GROUP_ICON | Hardware-independent icon resource |
RT_VERSION | Version resource |
lpszName
Points to a null-terminated string that represents the name of the resource being enumerated.
lpEnumFunc
Points to the callback function that will be called for each enumerated resource language. For more information, see the description of the EnumResLangProc function.
lParam
Specifies an application-defined value that is passed to the callback function.
The return value is TRUE if all resource languages of the specified type and name were enumerated. Otherwise, the return value is FALSE. Use the GetLastError function to obtain extended error information.
The EnumResourceLanguages function continues to enumerate resource languages until the callback function returns FALSE or until all resource languages have been enumerated.
The EnumResourceLanguages 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 installed).
EnumResLangProc, EnumResourceNames, EnumResourceTypes