How to retrieve or enumerate ISO-3166 numeric codes?

303 Views Asked by At

With EnumSystemLocalesEx I can enumerate supported countries and get the ISO-3166-Alpha 2 code.

With GetLocaleInfoEx I can retrieve the language name and the ISO-3166-Alpha 3 code. The list of information I can get does not contain the ISO-3166 numeric value, or I missed it and it hides behind a value I can't understand.

I found LOCALE_SISO3166CTRYNAME, LOCALE_SISO3166CTRYNAME2.

Is there a way to to retrieve the ISO-3166-Numeric value with any of the Windows API function too, when I have a given ISO Alpha 2 or Alpha 3 code?

Edit: Code should work for Windows Vista and later!

0

There are 0 best solutions below