Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jun : How to Detect "Real-Time" LAN Connection Status?

www.cryer.info
Managed Newsgroup Archive

How to Detect "Real-Time" LAN Connection Status?

Subject:How to Detect "Real-Time" LAN Connection Status?
Posted by:"norberto" (pellic..@shaw.ca)
Date:Sat, 09 Jun 2007 22:42:51 -0700

Hi,

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 or be notified when the status changes.

i would like to use an API or WMI or ? 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.

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive