Reading the current network speed 
Author Message
 Reading the current network speed

Hi there

I need to read the currend set
networkspeed(10half/10full/100half/100full/Autosense) of the local computer.
I tried a lot, but didn't found a way to get the infos i need.
Can someone help me?
Thanx people!!

Regards,
Florian B?nziger



Tue, 07 Jun 2005 20:51:57 GMT  
 Reading the current network speed

Quote:

> Hi there

> I need to read the currend set
> networkspeed(10half/10full/100half/100full/Autosense) of the local computer.
> I tried a lot, but didn't found a way to get the infos i need.
> Can someone help me?

Hi

There is no standard for Duplex setting retrival:


Subject: RE: Network Adapter Duplex Mode
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2002-09-23 01:22:17 PST

</qoute>
Duplex Mode is not an O/S concept. The Ethernet Half/Full/Auto duplex
settings is handled directly by the device, and specified as a user
configurable adapter parameter in the adapter's INF file. During
installation this is picked up from the INF and stored in the registry.
You'll have to open the device's registry key directly using
SetupDiOpenDevRegKey (documented in MSDN), then read the values under it.

(If you want to look it up in regedit, this translates to the adapter
instance key under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11C
E-BFC1-08002bE10318}\xxxx  (never open this key programatically! - use
SetupDi API for this). The list of allowed values is under the "Ndi\params"
subkey under the device key).

However, I doubt whether this will be useful to you at all to try and get
the duplex in any type of generic fashion for all brands of NIC. E.g. for
my 3COM Card, the duplex is stored under the "Media_type" parameter, where
for my Intel Card, it's stored under the "SpeedDuplex" parameter. You
probably find as many parameter names as you have vendors. Of course if
this is for an internal app, and your customer's organization standardized
on one specific vendor, you may be able to get at least some of the way
there.
</qoute>

--
torgeir
Microsoft MVP Scripting and WMI
Porsgrunn Norway



Wed, 08 Jun 2005 08:32:28 GMT  
 Reading the current network speed
Hi Torgeir

Thanx a lot for your help.
Wish you a nice christmas eve.

Regards,
Florian B?nziger



Sat, 11 Jun 2005 17:06:48 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Reading the current network speed

2. ADSI:GetObject network path not found reading info other than the current computer name

3. Read current network user ID

4. Network Speed Identification

5. network interface speed

6. Network speed and vbscript (no WMI)

7. Network Speed and Duplex Information

8. How can I determine current transfer speed?

9. How can I determine current transfer speed?

10. Speed, Speed, and Speed!

11. Speed Speed Speed - Cutting down on wasted cycles

12. Reading Access 2.0 db on network w/read-only access

 

 
Powered by phpBB® Forum Software