Looking for API call to retrieve IP addresses of NIC

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top