| |
 |
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
|