EnumResLangProc

  BOOL CALLBACK EnumResLangProc(hModule, lpszType, lpszName, wIDLanguage, lParam)    
  HANDLE hModule; /* module containing resources */
  LPCTSTR lpszType; /* resource type */
  LPCTSTR lpszName; /* resource name */
  WORD wIDLanguage; /* resource language ID */
  LONG lParam; /* application-defined parameter */

The EnumResLangProc function is an application-defined callback function that receives resource languages as a result of a call to the EnumResourceLanguages function.

Parameters

hModule

Identifies the module whose executable file contains the resource names being enumerated. If this parameter is NULL, the function is enumerating 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 name 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.

wIDLanguage

Specifies the language ID for the resource being enumerated. The EnumResourceLanguages function provides this value. See MAKELANGID for a list of the primary language IDs and sub-language IDs that make up a language ID.

lParam

Specifies the application-defined parameter passed to the EnumResourceLanguages function.

Return Value

The callback function returns TRUE to continue enumeration; to stop enumeration, it returns FALSE.

Comments

EnumResLangProc is a placeholder for the application-defined function name.

The EnumResLangProc 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).

See Also

EnumResourceLanguages