|
Action |
Enables enumeration of TCP/IP information of all network adapters of the local system.
|
Syntax |
ENUMIPINFO (index, type, mode)
|
Parameter |
Index
A numeric value representing the IP information group you want to discover (where 0 is the first group).
Type
Optional parameter identifying the type of information you want to enumerate.
|
0 |
IP address |
|
1 |
Subnet mask |
|
2 |
Adapter description |
|
3 |
Default gateway |
Mode
Optional parameter indicating whether or not EnumIPInfo should rediscover IP information from the system. If this parameter is omitted, EnumIPInfo retrieves IP information from the system during the first call, caches the information and re-uses the information on subsequent calls in the current KiXtart session. Possible values:
|
0 |
Re-use cached information. |
|
1 |
Retrieve current IP information from the system. |
|
Returns |
A string representing the requested information.
|
Remarks |
This function is available on Windows XP, Windows 2000 and Windows 9x, but not on Windows NT. Furthermore, this function relies on a correct installation of the IP Helper API which is installed as part of Microsoft Internet Explorer 5.0 and higher. Note that there is a known issue with installing the required DLLs on Windows 9x. Full details on this issue can be found in the following KnowledgeBase article: http://support.microsoft.com/support/kb/articles/Q234/5/73.ASP.
|
Example |
$Result = EnumIPInfo()