🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #48

Re: How to detect LAN connection break?

#48
From: itibira
Date: Sun, 10 Jun 2007 05:27
19 lines
1893 bytes
On Jun 9, 8:49 pm, itibira <pelli...@shaw.ca> wrote:
> 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.
>
> 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.
Technical Details
Message-ID: <1181453249.539596.105130@i38g2000prf.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!i38g2000prf.googlegroups.com!not-for-mail
References: <1181447389.074170.186010@x35g2000prf.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94dd,3f35fa51512e6637
X-Google-Attributes: gidf94dd,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!i38g2000prf.googlegroups.com!not-for-mail
From:  itibira <pellicci@shaw.ca>
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: How to detect LAN connection break?
Date: Sat, 09 Jun 2007 22:27:29 -0700
Organization: http://groups.google.com
Lines: 20
Message-ID: <1181453249.539596.105130@i38g2000prf.googlegroups.com>
References: <1181447389.074170.186010@x35g2000prf.googlegroups.com>
NNTP-Posting-Host: 24.86.182.61
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1181453250 2297 127.0.0.1 (10 Jun 2007 05:27:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 10 Jun 2007 05:27:30 +0000 (UTC)
In-Reply-To: <1181447389.074170.186010@x35g2000prf.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: i38g2000prf.googlegroups.com; posting-host=24.86.182.61;
   posting-account=mN8AQA0AAADAQXHgBp0uKGsYzrqa5Pib