How can the real-rime status of the LAN connection be determined? ie:
i would like to know (query) if there is a network cable attached or
not.
Thanks in advance.
P.S.:
i would like to use an API or WMI directly and not third party
components to do this. Windows XP and 2000 for example, have a Local
Area Connection icon in the System Tray that will show a message of
whether the Network cable is unplugged or not and it will notify the
user immediately when a change occurs. i would like to capture this
event programatically. How can this be done?
Thanks.