Enumerates the geographical location identifiers (type GEOID) that are available on the operating system.
BOOL EnumSystemGeoID(
GEOCLASS GeoClass,
GEOID ParentGeoId,
GEO_ENUMPROC lpGeoEnumProc
)
GeoClass
Type: GEOCLASS
Geographical location class for which to enumerate the identifiers. At present, only GEOCLASS_NATION is supported. This type causes the function to enumerate all geographical identifiers for nations on the operating system.
ParentGeoId
Type: GEOID
Reserved. This parameter must be 0.
lpGeoEnumProc
Type: GEO_ENUMPROC
Pointer to the application-defined callback function EnumGeoInfoProc. The EnumSystemGeoID function makes repeated calls to this callback function until it returns FALSE.
Type: BOOL
Returns a nonzero value if successful, or 0 otherwise. To get extended error information, the application can call GetLastError, which can return one of the following error codes:
Header: Declared in winnls.h.
Library: Use kernelx.lib.