Search code examples
windowswinapiwindows-7windows-vistawindows-xp

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


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

alt text http://dl.dropbox.com/u/3978473/location.png


Solution

  • 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