ConvertDefaultLocale
ConvertDefaultLocale
Functional Difference from WIN95
N/A
Functional Difference from SBCS Open32
New
Implementation
This API converts a special default locale value to an actual Locale ID,
and returns it. Open32 generates the required values with referring to
the value which the Open32 constructor useNLS initializes when the process
begins.
───────────────────────────────────────────────────────────────
Value as Locale parameter This function returns
LOCALE_SYSTEM_DEFAULT System default Locale ID(*1)
LOCALE_USER_DEFAULT User default Locale ID(*2)
zero language-neutral default
locale(*3)
Any sublanguage neutral locale sublanguage neutral default
(*4) locale(*5)
───────────────────────────────────────────────────────────────
Note:
- See the description of 'GetSystemDefaultLCID'
about how the system default Locale ID is generated.
- See the description of 'GetUserDefaultLCID'
about how the user default Locale ID is generated,
- Language-neutral default locale is the thread
locale. See the description of 'GetThreadLocale' about the thread locale.
- In Open32, the validity of the sublanguage neutral
locale is same in WIN95. That is, the sort ID should be default(=zero),
and the sublanguage should be neutral(=zero), and language should be valid.
This rule is gotten from the test on WIN95J. Otherwise, it is not accepted
as the sublanguage neutral locale.
- It consists of the specified primary language,
the default sublanguage and the default sort ID.
[Back: Functional Description by API or Message]
[Next: EnumSystemCodePages]