EnumUILanguagesProc callback function

An application-defined callback function that processes enumerated user interface language information provided by the EnumUILanguages function. The UILANGUAGE_ENUMPROC type defines a pointer to this callback function. EnumUILanguagesProc is a placeholder for the application-defined function name.


BOOL CALLBACK EnumUILanguagesProc(
  _In_ LPTSTR   lpUILanguageString,
  _In_ LONG_PTR lParam


lpUILanguageString [in]

Pointer to a buffer containing a null-terminated string representing a user interface language identifier or language name, depending on the value for the dwFlags parameter passed in the call to EnumUILanguages.

lParam [in]

Application-defined value.

Return value

Returns TRUE to continue enumeration or FALSE otherwise.


An EnumUILanguagesProc function can carry out any task. The application registers this function by passing its address to the EnumUILanguages function.

If MUI_LANGUAGE_ID was specified in the call to EnumUILanguages, the language strings passed to this function will be hexadecimal language identifiers that do not include the leading 0x, and will be 4 characters in length. For example, en-US will be passed as "0409" and en as "0009".

C# Signature

delegate System.Boolean EnumUILanguagesProc(
            System.IntPtr lpUILanguageString,
            System.IntPtr lParam


Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]


Winnls.h (include Windows.h)

See also

Multilingual User Interface
Multilingual User Interface Functions