Enumerates the geographical location identifiers (GEOID) that are available on the operating system.
#Include <WinAPIEx.au3>
_WinAPI_EnumSystemGeoID ( )
None. |
Success | The array of the GEOID. The zeroth array element contains the number of identifiers. |
失败: | 返回 0 并设置 @error 标志为非 0 值. |
在MSDN中搜索
#Include <APIConstants.au3>
#Include <Array.au3>
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Data = _WinAPI_EnumSystemGeoID()
If IsArray($Data) Then
For $i = 1 To $Data[0]
$Data[$i] = _WinAPI_GetGeoInfo($Data[$i], $GEO_FRIENDLYNAME)
Next
EndIf
_ArrayDisplay($Data, '_WinAPI_EnumSystemGeoID')