ConvertDefaultLocale (Windows CE 5.0)
This function converts a special default locale value to an actual locale identifier.
LCIDConvertDefaultLocale(LCIDLocale);
Parameters
- Locale
[in] Default locale value that the function converts to a locale identifier (LCID). The following table shows the default locale values:Value Description LOCALE_SYSTEM_DEFAULT The system's default locale. LOCALE_USER_DEFAULT The current user's default locale. LOCALE_NEUTRAL The language-neutral default locale. Any sublanguage-neutral locale A 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.
Remarks
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.
Requirements
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