GetUserDefaultLangID
Functional Difference from WIN95
N/A
Functional Difference from SBCS Open32
New
Implementation
This API returns the actual user default language ID. This is initialized by Open32 constructor useNLS when the process begins. SBCS codepage allowed for DBCS countries are only 437 and 850. In either case, we need to simulate US English environment because legacy OS/2 has supported those codepages in DBCS mode as such. This is compatibility requirement. It is "EN_US" for these cases, other wise "LANG" environment variable that Open32 searches as the ULS locale name in the locale tables hard-coded in Open32. The the language ID of that locale table, if it is valid, is set as the user default language. If their is not the corresponding locale table, the user default language is same as the system default locale.