Mark,
Some time ago I was looking into doing the same thing but ended up not
having to complete the project since our entire enterprise standardized on
Auto switching. I didn't complete the code but I did have it figured out!
Check out the following Reg keys:
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008]
"TxPacketDescCnt"="200"
"RxStdDescCnt"="200"
"RxCoalescingTicks"="10"
"TxCoalescingTicks"="30"
"RxMaxCoalescedFrames"="5"
"TxMaxCoalescedFrames"="200"
"Characteristics"=dword:00000084
"BusType"="5"
"ComponentId"="pci\\ven_14e4&dev_165e&subsys_0890103c"
"Enable8021p"="0"
"FlowControlCap"="2147483648"
"LargeSendOffload"="1"
"RequestedMediaType"="6"
"TaskOffloadCap"="63"
"WakeUpModeCap"="3"
"WolSpeed"="0"
"InfPath"="oem27.inf"
"InfSection"="BCM5705MA2.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_165e&subsys_0890103c"
"DriverDesc"="Broadcom NetXtreme Gigabit Ethernet"
"NetCfgInstanceId"="{13B14DD4-AA31-4A55-9735-B821CD207A8B}"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008\Ndi\Params\RequestedMediaType]
"ParamDesc"="Speed & Duplex"
"default"="0"
"type"="enum"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008\Ndi\Params\RequestedMediaType\enum]
"0"="Auto"
"3"="10 Mb Half"
"4"="10 Mb Full"
"5"="100 Mb Half"
"6"="100 Mb Full"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
is consistent across all NICs that I tested but from there the actual keys
varied slightly so you will need to allow for the diferences in your code.
Hope this helps you get where you need to go.
Matt L.
Mark said:
Hey All-
Is there a way to set link speed and duplex with a setup script using
c++ or vbs, or anything at all? I'm trying to make a setup program that
will automatically set IP, link speed and duple, PC name, and a couple
other things. It seems link speed and duplex is a tough one. I know on
linux you can force it using mii-tools, anything similar in XP/2k?
Very Respectfully,
Mark Ro