GetSystemDefaultLCID

LCID GetSystemDefaultLCID();

Retrieves the default LCID from a user's system.

Return Value

Return value Meaning
0 Failure.
System default locale ID Success.

Comments

Returns the system default LCID. The return value is determined by examining the values of sLanguage and iCountry in Win.ini, and comparing the values to those in the stored locale database. If no matching values are found, or the required values cannot be read from Win.ini, or if the stored locale database cannot be loaded, the value 0 is returned.