Поделиться через


SetUserDefaultLCID (Windows Embedded CE 6.0)

1/6/2010

This function sets the locale identifier (LCID) for the current user. This updates the user locale and the user locale descriptor.

Syntax

BOOL SetUserDefaultLCID(
  LCID Locale
);

Parameters

  • Locale
    Locale identifier to set as the user's default locale.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

Applications that use SetUserDefaultLCID are required to have OEM_CERTIFY_TRUST privileges, or the function will fail with an ERROR_ACCESS_DENIED message. For more information, see Trusted Environment Creation.

An application that calls SetUserDefaultLCID must send out a system-wide notification by calling the PostMessage function and passing the following parameters:

PostMessage(HWND_BROADCAST, WM_WININICHANGE, 0, INI_INTL);

Requirements

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

See Also

Concepts

Language Identifiers and Locales

Other Resources

National Language Support (NLS) Functions