I would like to write an application to detect the IP addresses of all network connections on a Windows computer system, as well as the IP of all ethernet devices connected to that system. Is there an easy way to do this programmatically with the Windows API?
I'm looking for the C++ equivalent to the answer to this question:
How do I check for a network connection?
as well as how to enumerate ethernet devices connected.
I am aware of Beej's networking guide and I'm actually (slowly) making my way through it, but I thought there if there is a quicker, easier way, that would be fantastic. I searched all over StackOverflow without too much luck.
If anyone has any advice, or could point me to a useful guide, that would be great!
Thanks!
--R