Hola everybody!

I'm writting an MFC VC++ 6.0 application and it needs to retrieve the network interface status.
I mean, for example: When you first connect your laptop to a WiFi network you get an icon in system-tray whose tooltip sais "it is trying to get an IP address via DHCP".
Later on you can read that it is actually "connected"; or that you have "limited connectivity", etc.
These "getting IP address", "limited connectivity" or "connected" is what I mean when I say "network interface status" that I need to retrieve.

Does anybody know a way to get this?

Thank you very much,

Ricardo Vazquez.
Madrid, Spain.