ConvertDefaultLocale (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function converts a special default locale value to an actual locale identifier.

LCID ConvertDefaultLocale(
  LCID Locale


[in] Default locale value that the function converts to a locale identifier (LCID). The following table shows the default locale values:
LOCALE_SYSTEM_DEFAULTThe system's default locale.
LOCALE_USER_DEFAULTThe current user's default locale.
LOCALE_NEUTRALThe language-neutral default locale.
Any sublanguage-neutral localeA locale identifier constructed by calling MAKELCID with a primary language identifier, such as LANG_ENGLISH, and the SUBLANG_NEUTRAL secondary language identifier.

Return Values

The appropriate LCID indicates success. The Locale parameter indicates failure. The function fails when Locale is not one of the default locale values listed above.


A call to ConvertDefaultLocale(LOCALE_SYSTEM_DEFAULT) is equivalent to a call to the GetSystemDefaultLCID function. A call to ConvertDefaultLocale (LOCALE_USER_DEFAULT) is equivalent to a call to the GetUserDefaultLCID function.

For more information, see National Language support (NLS) Locale Identifiers.


OS Versions: Windows CE .NET 4.0 and later.
Header: Winnls.h.
Link Library: Coreloc.lib.

See Also

MAKELCID | LCID | GetSystemDefaultLCID | GetUserDefaultLCID | National Language support (NLS) Locale Identifiers

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.

© 2016 Microsoft