开发者

Enumerate countries in various languages ISO 3166 using Win32

开发者 https://www.devze.com 2023-02-22 09:42 出处:网络
Is there a way to enumerate all countries and their ISO 3166 codes using some Win32 API or similar? Preferably, in both English and German.开发者_开发百科The Windows version you target is important, t

Is there a way to enumerate all countries and their ISO 3166 codes using some Win32 API or similar? Preferably, in both English and German.开发者_开发百科


The Windows version you target is important, the NLS api was considerably improved for Vista. EnumSystemLocalesEx() is probably what you are looking for, it returns locales names as a <language> <REGION> string where language is the lowercase ISO 639 language code and REGION is the ISO 3166 country/region identifier. German or English doesn't matter, these codes are language independent. Have a look-see at the NLS api docs to see what's available.

0

精彩评论

暂无评论...
验证码 换一张
取 消