Home
Contents

CountryWhois SDK

 
CountryWhois SDK
About CountryWhois SDK
Using CountryWhois SDK
Functions for Obtaining the Country ID
SWAPI_IPAddressToCountryID
SWAPI_IPStringToCountryID
SWAPI_CountryCodeToCountryID
SWAPI_GetMinCountryID
SWAPI_GetMaxCountryID
Functions for Obtaining Information About a Country
SWAPI_CountryIDToCountryCode
SWAPI_CountryIDToCountryName
SWAPI_CountryIDToContinentCode
SWAPI_CountryIDToContinentName
SWAPI_GetCountryCodeStatus
SWAPI_GetCountryCodeIndex
SWAPI_EnumCountryIPRanges
EnumIPRangesProc
Functions for Obtaining the Continent ID
SWAPI_CountryIDToContinentID
SWAPI_ContinentCodeToContinentID
SWAPI_GetMinContinentID
SWAPI_GetMaxContinentID
Functions for Obtaining Information About a Continent
SWAPI_ContinentIDToContinentCode
SWAPI_ContinentIDToContinentName
SWAPI_EnumContinentIPRanges
SWAPI_EnumContinentCountries
EnumCountriesProc
Country Flags
SWAPI_GetCountryFlagBitmap
SWAPI_GetCountryFlagsImageList
SWAPI_GetCountryFlagsImageListEx
SWAPI_GetCountryFlagsImageListIndex
SWAPI_DestroyCountryFlagsImageList

EnumIPRangesProc

This function is an application-defined callback function used with the SWAPI_EnumCountryIPRanges and SWAPI_EnumContinentIPRanges functions. It receives information on the range borders and country ID to which the range belongs.

Syntax

Microsoft Visual C++
BOOL __stdcall EnumIPRangesProc(
  WORD CountryID,
  DWORD RangeBegin,
  DWORD RangeEnd,
  DWORD UserData
);
Borland Delphi
type
  TEnumIPRangesProc = function(
    const CountryID: WORD;
    const RangeBegin: DWORD;
    const RangeEnd: DWORD;
    const UserData: DWORD
  ): BOOL; stdcall;
Microsoft Visual Basic
Public Function EnumIPRangesProc(
  ByVal CountryID As Integer,
  ByVal RangeBegin As Long,
  ByVal RangeEnd As Long,
  ByRef UserData As Long
) As Boolean

Parameters

CountryID
[in] Country ID to which the enumerated ranges belongs.
 
RangeBegin
[in] Beginning address of the range stored in network byte order.
 
RangeEnd
[in] Ending address of the range stored in network byte order.
 
UserData
[in] Specifies the application-defined value set in the UserData parameter of the SWAPI_EnumCountryIPRanges or SWAPI_EnumContinentIPRanges functions.

Return Value

To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.

Defined In

Microsoft Visual C++
SWAPIMap.h, SWAPIMap.cpp
Borland Delphi
SWAPIMap.pas
Microsoft Visual Basic
SWAPIMap.bas

See Also

SWAPI_EnumCountryIPRanges
SWAPI_EnumContinentIPRanges


Copyright © 2006-2008, TamoSoft