开发者

Get country tld

How do I programmatically get the system country tld. In the registry ther开发者_StackOverflowe's a key called sCountry which has the country's name, but in the system language, eg. If the user has the Spanish version sCountry would be Espana, German version would be Deutschland, etc.


Wikipedia says that the country-code TLDs are based on ISO 3166 with a few exceptions, so presumably GetLocaleInfo with an LCTYPE of LOCALE_SISO3166CTRYNAME would be useful for this. Oh, but you said that.

Why do you need this, anyway, if you don't mind my asking?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜