Share via


EnumUILanguagesProc (Compact 2013)

3/28/2014

This function is an application-defined callback function. It is called as a result of a call to the EnumUILanguages function, and receives a pointer to a string buffer containing a UI language identifier.

Syntax

BOOL CALLBACK EnumUILanguagesProc(
  LPTSTR lpUILanguageString
);

Parameters

  • lpUILanguageString
    Pointer to a string buffer containing a null-terminated string that specifies the UI language identifier (LANGID). For example, the system-defined language identifier for English (United States) is 0x0409. For more information about language identifiers, see Language Identifiers.

    Note

    The lpUILanguageString parameter should be an LPWSTR for the Unicode (W) version of EnumUILanguagesProc.

Return Value

TRUE continues enumeration. FALSE stops enumeration.

Remarks

EnumUILanguagesProc is a placeholder for an application-defined function name. An EnumUILanguagesProc function can carry out any desired task. An application registers an EnumUILanguagesProc function by passing its address to the EnumUILanguages function. A value of type UILANGUAGE_ENUMPROC is a pointer to an EnumUILanguagesProc function.

Note

This function poses a security risk. The parameter lpUILanguageString is only used as input but not declared as a const string. The user may fill anything into it and can cause a buffer overflow.

Link Library: Coreloc.lib.

Requirements

Header

windows.h

Library

Coreloc.lib

See Also

Reference

Multilingual User Interface (MUI) Functions
Language Identifiers
EnumUILanguages