NAME

SetLocaleInfoA  (KERNEL32.@)

SYNOPSIS

 BOOL SetLocaleInfoA
 (
  LCID   lcid,
  LCTYPE lctype,
  LPCSTR data
 )

DESCRIPTION

Set information about an aspect of a locale.

PARAMS

lcid [In] LCID of the locale.
lctype [In] LCTYPE_ flags from "winnls.h".
data [In] Information to set.

RETURNS

Success: TRUE. The information given will be returned by GetLocaleInfoA whenever it is called without LOCALE_NOUSEROVERRIDE.

Failure: FALSE. Use GetLastError to determine the cause.

NOTES

- Values are only be set for the current user locale; the system locale settings cannot be changed.

- Any settings changed by this call are lost when the locale is changed by the control panel (in Wine, this happens every time you change LANG).

- The native implementation of this function does not check that lcid matches the current user locale, and simply sets the new values. Wine warns you in this case, but behaves the same.

IMPLEMENTATION

Declared in "winnls.h". https://source.winehq.org/source/include/winnls.h

Implemented in "dlls/kernel32/locale.c". https://source.winehq.org/source/dlls/kernel32/locale.c

Debug channel "nls".


Copyright © 2020 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Mar 2020.