🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12816

Re: API Call To Detect Network is offline

#12816
From: Remy Lebeau (TeamB)
Date: Thu, 13 Nov 2003 22:32
14 lines
1399 bytes
"Helcio Mayor" <HelcioLiza@mayorgroves.fsnet.co.uk> wrote in message
news:3fb3ffd9$1@newsgroups.borland.com...

> Anyone knows call back or API call that would detect when
> say the network cable is pulled out ?

Look at WMI (Windows Management Instrumentation).  Under Win2K and XP, you
can use the NdisMediaConnectStatus property of the MSNdis_MediaConnectStatus
object.  Under WinXP, you can alternative use the NetConnectionStatus
property of the Win32_NetworkAdapter object.


Gambit
Technical Details
Message-ID: <3fb40595@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fb3ffd9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ffb798a39f772144
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-13 14:39:47 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fb3ffd9$1@newsgroups.borland.com>
Subject: Re: API Call To Detect Network is offline
Date: Thu, 13 Nov 2003 14:32:07 -0800
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.149
Message-ID: <3fb40595@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1068762517 67.22.137.149 (13 Nov 2003 14:28:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail