🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.nativeapi.win32
3 messages
3 total messages Started by Ivo Bauer Sun, 03 Aug 2008 23:36
Network configuration
#18
Author: Ivo Bauer
Date: Sun, 03 Aug 2008 23:36
27 lines
1667 bytes
Hi,

I would use some help to achieve the following goals:

(1) Enumerate all network adapters. For each adapter, the following
properties need to be obtained:

(a) Device name, e.g. 'NVIDIA nForce Networking Controller'
(b) Friendly name, e.g. 'Local Area Connection'
(c) Device status, e.g. if it is currently enabled or disabled
(d) IP address
(e) Subnet mask
(f) Default gateway

(2) For given network adapter, I need to be able to:

(a) Disable automatic TCP/IP protocol settings assignment (if there is
one).
(b) Tell that adapter to use a specific IP address, subnet mask and
default gateway.

Any pointers would be highly appreciated. I've tried to search through
the archives, but either Google newsgroup search seems to be seriously
broken, or I obviously lack the competence to use it.

-- 
Ivo Bauer
Re: Network configuration
#19
Author: Rob Kennedy
Date: Sun, 03 Aug 2008 23:55
32 lines
2099 bytes
Ivo Bauer wrote:
> I would use some help to achieve the following goals:
> 
> (1) Enumerate all network adapters. For each adapter, the following
> properties need to be obtained:
> 
> (a) Device name, e.g. 'NVIDIA nForce Networking Controller'
> (b) Friendly name, e.g. 'Local Area Connection'
> (c) Device status, e.g. if it is currently enabled or disabled
> (d) IP address
> (e) Subnet mask
> (f) Default gateway
> 
> (2) For given network adapter, I need to be able to:
> 
> (a) Disable automatic TCP/IP protocol settings assignment (if there is
> one).
> (b) Tell that adapter to use a specific IP address, subnet mask and
> default gateway.
> 
> Any pointers would be highly appreciated. I've tried to search through
> the archives, but either Google newsgroup search seems to be seriously
> broken, or I obviously lack the competence to use it.

http://groups.google.com/groups/search?q=enumerate+network+adapters+group%3A*delphi*

The first article in my results mentioned the GetAdaptersInfo API 
function. The documentation for that mentions a few other functions, 
such as GetInterfaceInfo and GetIpAddrTable.

-- 
Rob
Re: Network configuration
#23
Author: Ivo Bauer
Date: Mon, 04 Aug 2008 12:05
12 lines
1372 bytes
Rob Kennedy wrote:
> http://groups.google.com/groups/search?q=enumerate+network+adapters+group%3A*delphi*
> 
> The first article in my results mentioned the GetAdaptersInfo API
> function. The documentation for that mentions a few other functions,
> such as GetInterfaceInfo and GetIpAddrTable.

Many thanks for these pointers, Rob. It will take me some time to go
through them.

-- 
Ivo Bauer
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads