It sounds like you want a combination of a few different functions.
To get a list of adapters with their IPv4 addresses/masks, associated WINS servers and DNS servers, you can use GetAdaptersInfo
. To get IPv6 addresses, you can use GetAdaptersAddresses
.
Depending on what is included in your "etc." you might also want GetIfTable
and GetIfEntry
. GetIfTable
gets a list of network adapters. GetIfEntry
gets you information about each. These retrieve things like the amount of data that's been transmitted/retrieved over a particular interface. There's also a GetIfTable2
/GetIfEntry2
that are only for Vista and newer that get more information.
If memory serves, GetIfTable
/GetIfEntry
list all the interfaces in the machine. GetAdaptersInfo
only works with the "real" adapters.