I want to get the current country code for the oldest Windows systems.
I used GetLocaleInfo () with LOCALE_ICOUNTRY , but then I realized that it returns incorrect results (same values for different countries), so I tried LOCALE_SISO3166CTRYNAME, which returns the country code in the standard ISO3166 two-word code (for example, "US").
http://www.iso.org/iso/english_country_names_and_code_elements
... it works fine, but not on the oldest versions of Windows.
So my question is: how to get a valid country code (identifier, name, whatever ...) in Windows 95 / NT 3.51?
source
share