ipconfig / winipcfg

To all,

I am attempting to write an app that requires functionality similar to the
IPCONFIG utility in NT/2000 and WINIPCFG utility in 95/98. I need to be
able to provide a list of the machine’s IP addresses along with each IP
address’s adapter. For example, if a PC has both a network connection
(e.g., a 3COM network card) and a live modem connection (e.g., a modem call
to AOL), the app would display two entries: an entry for the 3COM card and
an entry for the PPP adapter.

Is there an API or other mechanism available in 95, 98, NT4, and 2000 that
will allow me to do this?

I’ve found entries in the registry under NT and 2000 that appear to give me
this information, so I can use an ad-hoc solution to solve the problem
under NT and 2000. But I couldn’t find similar information in the registry
under 95 and 98. Also, I know that I can obtain a list of IP addresses
via WinSock. However, WinSock does not provide me with the name of the
adapter associated with each IP address.

Can anyone help me?

Thanks in advance for any assistance.

Regards,

Terry Gin
Cirilium Engineering

You can use the information exported by the IP helper library, IPHLPAPI.DLL,
to get this information.

Ed

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, July 28, 2000 1:06 PM
Subject: [ntdev] ipconfig / winipcfg

> To all,
>
> I am attempting to write an app that requires functionality similar to the
> IPCONFIG utility in NT/2000 and WINIPCFG utility in 95/98. I need to be
> able to provide a list of the machine’s IP addresses along with each IP
> address’s adapter. For example, if a PC has both a network connection
> (e.g., a 3COM network card) and a live modem connection (e.g., a modem
call
> to AOL), the app would display two entries: an entry for the 3COM card
and
> an entry for the PPP adapter.
>
> Is there an API or other mechanism available in 95, 98, NT4, and 2000 that
> will allow me to do this?
>
> I’ve found entries in the registry under NT and 2000 that appear to give
me
> this information, so I can use an ad-hoc solution to solve the problem
> under NT and 2000. But I couldn’t find similar information in the
registry
> under 95 and 98. Also, I know that I can obtain a list of IP addresses
> via WinSock. However, WinSock does not provide me with the name of the
> adapter associated with each IP address.
>
> Can anyone help me?
>
> Thanks in advance for any assistance.
>
> Regards,
>
> Terry Gin
> Cirilium Engineering
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@midcore.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>

According to the MSDN, the relevant IPHLPAPI.DLL functions are not
available for 95 and NT. Most of them are available only on 2000.

Terry

“Ed Lau”
To: “NT Developers Interest List”
Sent by: cc:
xxxxx@lis Subject: [ntdev] Re: ipconfig / winipcfg
ts.osr.com

07/28/00 10:45 AM
Please respond to
“NT Developers
Interest List”

You can use the information exported by the IP helper library,
IPHLPAPI.DLL,
to get this information.

Ed

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, July 28, 2000 1:06 PM
Subject: [ntdev] ipconfig / winipcfg

> To all,
>
> I am attempting to write an app that requires functionality similar to
the
> IPCONFIG utility in NT/2000 and WINIPCFG utility in 95/98. I need to be
> able to provide a list of the machine’s IP addresses along with each IP
> address’s adapter. For example, if a PC has both a network connection
> (e.g., a 3COM network card) and a live modem connection (e.g., a modem
call
> to AOL), the app would display two entries: an entry for the 3COM card
and
> an entry for the PPP adapter.
>
> Is there an API or other mechanism available in 95, 98, NT4, and 2000
that
> will allow me to do this?
>
> I’ve found entries in the registry under NT and 2000 that appear to give
me
> this information, so I can use an ad-hoc solution to solve the problem
> under NT and 2000. But I couldn’t find similar information in the
registry
> under 95 and 98. Also, I know that I can obtain a list of IP addresses
> via WinSock. However, WinSock does not provide me with the name of the
> adapter associated with each IP address.
>
> Can anyone help me?
>
> Thanks in advance for any assistance.
>
> Regards,
>
> Terry Gin
> Cirilium Engineering
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@midcore.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>


You are currently subscribed to ntdev as: xxxxx@cirilium.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

WMI could provide this information. However, the systems you run on would
need to have the WMI Core installed. Windows 2000 has the WMI Core by
default, but it must be installed separately on NT4, W98 and W95 OSR2.
(http://msdn.microsoft.com/downloads/sdks/wmi/default.asp)

-John

-----Original Message-----
From: Ed Lau [mailto:xxxxx@midcore.com]
Sent: Friday, July 28, 2000 12:45 PM
To: NT Developers Interest List
Subject: [ntdev] Re: ipconfig / winipcfg

You can use the information exported by the IP helper library, IPHLPAPI.DLL,
to get this information.

Ed

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Friday, July 28, 2000 1:06 PM
Subject: [ntdev] ipconfig / winipcfg

> To all,
>
> I am attempting to write an app that requires functionality similar to the
> IPCONFIG utility in NT/2000 and WINIPCFG utility in 95/98. I need to be
> able to provide a list of the machine’s IP addresses along with each IP
> address’s adapter. For example, if a PC has both a network connection
> (e.g., a 3COM network card) and a live modem connection (e.g., a modem
call
> to AOL), the app would display two entries: an entry for the 3COM card
and
> an entry for the PPP adapter.
>
> Is there an API or other mechanism available in 95, 98, NT4, and 2000 that
> will allow me to do this?
>
> I’ve found entries in the registry under NT and 2000 that appear to give
me
> this information, so I can use an ad-hoc solution to solve the problem
> under NT and 2000. But I couldn’t find similar information in the
registry
> under 95 and 98. Also, I know that I can obtain a list of IP addresses
> via WinSock. However, WinSock does not provide me with the name of the
> adapter associated with each IP address.
>
> Can anyone help me?
>
> Thanks in advance for any assistance.
>
> Regards,
>
> Terry Gin
> Cirilium Engineering
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@midcore.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>


You are currently subscribed to ntdev as: xxxxx@Compaq.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)