views:

37

answers:

2

Hi,

How can I programatically retrieve the "Location" as displayed in the Regional and Language Settings?

alt text

+1  A: 

HKEY_CURRENT_USER\Control Panel\International\Geo

I don't know, how to convert the number to the name of the country :(

shahkalpesh
+1  A: 

Here is a list of the GeoIDs as you would retrieve from the registry entry previously mentioned: (they're in hex)

http://msdn.microsoft.com/en-us/library/dd374073%28VS.85%29.aspx

Entry:

HKEY_CURRENT_USER\Control Panel\International\Geo

Mister X