Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Retrieve network interface status.

3 views
Skip to first unread message

Ricardo V�zquez

unread,
Oct 5, 2009, 6:17:50 AM10/5/09
to
Hola everybody!

I'm writting an MFC VC++ 6.0 application and I need to retrieve the *network
interface status*.
I mean, for example: When you first connect 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"...
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.


marc

unread,
Oct 5, 2009, 12:00:53 PM10/5/09
to

You must use Win32 Network Shell apis
(you can see on Win32 group (http://tinyurl.com/cmhb5g) for C code
(since Win95, same method..)

David Ching

unread,
Oct 6, 2009, 12:21:17 AM10/6/09
to
"Ricardo V�zquez" <rvaz...@dummy.es> wrote in message
news:OjpEaUaR...@TK2MSFTNGP05.phx.gbl...

Try IP Helper API:
http://msdn.microsoft.com/en-us/library/aa366073%28VS.85%29.aspx

If not, try the WMI functions (search for "WMI Network")

-- David

0 new messages