GetUserGeoID function (winnls.h)

[GetUserGeoID is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use GetUserDefaultGeoName.

]

Retrieves information about the geographical location of the user. For more information, see Table of Geographical Locations.

Syntax

GEOID GetUserGeoID(
  [in] GEOCLASS GeoClass
);

Parameters

[in] GeoClass

Geographical location class to return. Possible values are defined by the SYSGEOCLASS enumeration.

Return value

Returns the geographical location identifier of the user if SetUserGeoID has been called before to set the identifier.

If no geographical location identifier has been set for the user, the function returns GEOID_NOT_AVAILABLE.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header winnls.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

GetUserDefaultGeoName

National Language Support

National Language Support Functions

SYSGEOCLASS

SetUserGeoID