Translates a language ID to a country code
int ResGetCountryCodeFromLangID( LANGID langid ); |
Language ID. This can be formed using the MAKELANGID(...) macro.
Returns an integer representing the main country for the language and sub-language pair contained in the language ID. This normally corresponds to the international telephone dialling code for the country. Returns 0 if the lanuage ID cannot be found, or contains no main country.
This function calls the Windows API function GetLocaleInfo(), and looks up LCTYPE LOCALE_ICOUNTRY.
Header: xllres.h