Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

EnumSystemGeoID function

Enumerates the geographical location identifiers (type GEOID) that are available on the operating system.

Syntax


BOOL EnumSystemGeoID(
  _In_  GEOCLASS GeoClass,
  _In_  GEOID ParentGeoId,
  _In_  GEO_ENUMPROC lpGeoEnumProc
);

Parameters

GeoClass [in]

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 [in]

Reserved. This parameter must be 0.

lpGeoEnumProc [in]

Pointer to the application-defined callback function EnumGeoInfoProc. The EnumSystemGeoID function makes repeated calls to this callback function until it returns FALSE.

Return value

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:

  • ERROR_INVALID_FLAGS. The values supplied for flags were not valid.
  • ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

Winnls.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

National Language Support
National Language Support Functions
EnumGeoInfoProc

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.