Internationalization and localization tools


Windows C++ Locale Function

GEOID GetUserGeoID(GEOCLASS GeoClass);

Internationalization (I18n) Function Overview

The GetUserGeoID function retrieves information about the geographical location of the user. GeoClass specifies the geographical location class to return and must be set to GEOCLASS_NATION.

If SetUserGeoID has been called before, this function returns the GeoID of the user. If there is no GeoID for the user and GeoClass has been set, GetUserGeoID returns GEOID_NOT_AVAILABLE.

Call EnumSystemGeoID to enumerate the GeoIDs available on the system and GetGeoInfo to get information about a specific geographic location.

I18n Issues

In an internationalized application that uses geographical locations, ensure that the geographical location is variable rather than hardcoded, and that the language used in the display of the information corresponds to the application's language rather than the system's default language.

Note that GetUserGeoID is supported only on Windows XP, Windows Server 2003, and Windows Me.

Recommended Replacements*

There are no variations of the function call.

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Windows C++ Locale Functions

 

Lingoport internationalization and localization services and software