How to get the current country name in Windows 95, NT 3.51

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?

+3
source share
1

, , ( 1.25A) Win32S, GetLocaleInfo() . (.: w32s125a.txt).

, Win95 NT 3.51.

, !

+2

Source: https://habr.com/ru/post/1727414/


All Articles