Share via


EnumLocalesProc

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function is an application-defined callback function. It is called because of a call to the EnumSystemLocales function, and receives a pointer to a string buffer that contains a locale identifier.

Syntax

BOOL CALLBACK EnumLocalesProc(
  LPWSTR lpLocaleString
); 

Parameters

  • lpLocaleString
    [out] Pointer to a string buffer that contains a null–terminated locale identifier string.

Return Value

TRUE continues enumeration. FALSE stops enumeration.

Remarks

Windows Embedded CE supports only the Unicode version of this function.

An application registers an EnumLocalesProc function by passing its address to the EnumSystemLocales function.

Note

This function poses a security risk. The parameter lpLocaleString 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 winnls.h
Library Coreloc.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

EnumSystemLocales