by Michael S. Kaplan, published on 2005/09/22 03:01 -04:00, original URI: http://blogs.msdn.com/b/michkap/archive/2005/09/22/472614.aspx
HasnKyu Park asked in the newsgroups:
Dear guys,
1. Please refer to following tablehttp://msdn.microsoft.com/library/en-us/intl/nls_locations.asp
If I get the GEOID, How can I get the Location string in locale language? for example, with the identifier '0x2', I want to get the "Antigua and Barbuda".
2. Similarly,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_238z.asp
If I get the Identifier, How can I get the Language string in locale language? for example, with the identifier '0x0436', I want to get the "Afrikaans".
Best regards.
Well, both of these are fairly easy, as it turns out....
For #1, you call GetGeoInfo with that GEOID with the GEO_FRIENDLYNAME or GEO_OFFICALNAME SYSGEOTYPE, depending on which you prefer.
For #2, you call GetLocaleInfo with that LCID and one of the various LCTYPE values like LOCALE_SENGLANGUAGE.
In general, those two functions handle the "How do I get ______ from the GEOID/LCID value....