Looking for API call to retrieve IP addresses of NIC

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

Hi all.
In my application, I have 2 network cards, each with its own IP
Address. I found the instructions for using "netsh" to set IP
address, and even to add additional addresses to a NIC (network
interface card). That has been very handy.

But does anyone know of a call I can make in my software application
that will retrieve and return all of the IP Addresses associated with
a NIC? (I am aware that "netsh interface ip show address "Local Area
Connection" will do this from a command prompt, but it would work out
better for my application if I could make a couple of Windows calls to
get this information).

Thanks.
- Tony

This question might be better suited for the non-Embedded newsgroup.
If so, sory about that.
 
Back
Top