Compartir a través de


EnumUILanguagesProc (Windows Embedded CE 6.0)

1/6/2010

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 and Locales.

    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.

Requirements

Header windows.h
Library Coreloc.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

EnumUILanguages

Concepts

Language Identifiers and Locales

Other Resources

Multilingual User Interface (MUI) Functions