You dind't mention it, but have you already considered the painful
prospect of digging into the Windows registry for this information?

I used 'windump -D' to get the internal representation of my network adapter.
\Device\NPF-{6C75A394-A463-4C84-B935-24EAAE9AA9B2}

I searched the registry for that and came up with an interesting registry key:
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0001]

It had all sorts of interesting keys regarding my adapter.  For example:
"TxPacketDescCnt"="200"
"RxStdDescCnt"="200"
"RxCoalescingTicks"="10"
"TxCoalescingTicks"="30"
"RxMaxCoalescedFrames"="5"
"TxMaxCoalescedFrames"="200"
"Characteristics"=dword:00000084
"BusType"="5"
"ComponentId"="pci\\ven_14e4&dev_170d&subsys_05451014"
"Enable8021p"="0"
"FlowControlCap"="0"
"RequestedMediaType"="0"
"TaskOffloadCap"="0"
"WakeUpModeCap"="3"
"WolSpeed"="0"
"InfPath"="oem34.inf"
"InfSection"="BCM5901.XpInst"
"InfSectionExt"=".NTx86"
"ProviderName"="Broadcom"
"DriverDateData"=hex:00,40,00,ec,2b,1f,c3,01
"DriverDate"="5-21-2003"
"DriverVersion"="6.64.0.0"
"MatchingDeviceId"="pci\\ven_14e4&dev_170d&subsys_05451014"
"DriverDesc"="Broadcom NetXtreme Fast Ethernet"
"NetCfgInstanceId"="{6C75A394-A463-4C84-B935-24EAAE9AA9B2}"

I am guessing it would be a painful task to create something universal
out of this.

I looked through the vbscripts that are part of the Windows 2000
Server resource kit and the Windows XP resource kit tools and didn't
see anything there, either.

-Jason

On Mon, 24 Jan 2005 15:33:00 +0100, Eik Lars <[REMOVED]> wrote:
> Hi,
> 
> I have searched but not found any info on how to get driver info like
> link-speed-and-duplex form Windows 2000/2003 boxes.
> 
> Anybody know any good Perl things or how to get this from Windows API or
> maybe WMI??
> 
> Leik - Oslo
>
_______________________________________________
Perl-Win32-Admin mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to