Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Network Adapter Duplex Mode

19 views
Skip to first unread message

Mark Dormer

unread,
Sep 22, 2002, 10:05:02 PM9/22/02
to
If a network adapter is set to autosense, is it possible to determine the Duplex mode that is currently being used?

Regards
Mark Dormer

Duke Sun

unread,
Sep 23, 2002, 3:09:05 AM9/23/02
to
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.

Mark Dormer

unread,
Sep 24, 2002, 1:24:49 AM9/24/02
to
Thanks,

I didn't think it would be easy/possible.

Regards
Mark Dormer MVP

"Duke Sun" <qua...@microsoft.com> wrote in message
news:wfuK0dtYCHA.2224@cpmsftngxa08...

0 new messages