🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #238

Enumeration of Network Adapters - even disabled ones

#238
From: Lester
Date: Sun, 05 Jun 2005 12:27
16 lines
1802 bytes
Hi Everyone, I need some help to find the right direction, what to look
for.

The aim is to enumerate the network adapters (and get their status) in
my program. I need EXACTLY the datas I can read in Windows's "Network
Connections" window. (Adapter "friendly" name, connected, disabled,
etc)

I thought GetIfTable and/or GetAdaptersInfo API functions will do that,
but I was wrong: these functions don't return the disabled adapaters.

So where do all the information come from in the "Network Connections"
window? Other API functions? Registry?

(WMI is out of question: my prog must run on regular (WMI-less) Win98
machines as well.)
Technical Details
Message-ID: <1117974467.467225.325580@g14g2000cwa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10baee,d4d675868fef0ee8,start
X-Google-Thread: f894d,d4d675868fef0ee8,start
X-Google-Thread: 1091e5,d4d675868fef0ee8,start
X-Google-Attributes: gid10baee,gidf894d,gid1091e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail
From: "Lester" <vocalise27@yahoo.com>
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi,borland.public.delphi.winapi
Subject: Enumeration of Network Adapters - even disabled ones
Date: 5 Jun 2005 05:27:47 -0700
Organization: http://groups.google.com
Lines: 17
Message-ID: <1117974467.467225.325580@g14g2000cwa.googlegroups.com>
NNTP-Posting-Host: 210.225.229.27
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1117974472 3414 127.0.0.1 (5 Jun 2005 12:27:52 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 5 Jun 2005 12:27:52 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: g14g2000cwa.googlegroups.com; posting-host=210.225.229.27;
   posting-account=LaffugwAAAC4LmGh7iwvCTBelo8O7qio