Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


ipconfig / winipcfg

OSR_Community_UserOSR_Community_User Member Posts: 110,217
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

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    You can use the information exported by the IP helper library, IPHLPAPI.DLL,
    to get this information.

    Ed

    ----- Original Message -----
    From: <[email protected]>
    To: "NT Developers Interest List" <[email protected]>
    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: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >


    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    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:[email protected]]
    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: <[email protected]>
    To: "NT Developers Interest List" <[email protected]>
    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: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >


    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 20-24 May 2024 Live, Online