Click here to Skip to main content
15,886,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
the LAN port supports 10/100/1000Mbps,when i use the function GetifTable I can get
the current LAN speed, generally, the LAN uses auto adjust, but now i want to set it 1000Mbps ot 100Mbps, i can not find any function to set ,any one can help me?
Posted
Comments
Andrew Brock 14-Nov-11 6:29am    
This is automatically negotiated with the device at the other end. It may be possible (although I don't know of any way) to force it to a slower speed, but the link cannot exceed it's maximum speed.

The data at the other end of the cable is not exactly what is sent. The quality of the cable can make it difficult to determine the original signal. You cannot force it to go faster than what it is capable of otherwise the devices can't tell what the original signal was.
czanbiao 14-Nov-11 8:53am    
i know the link cannot exceed the max speed, but in the Network Configuration,we can set the "speed/duplex settings", that can force the max speed.
what should i do if i want to Achieve it in code

1 solution

It is something that belogs to the "driver" layer, hence it is hard to have a common API to do that. (imagine 10 apps on your desktop, each of which wants to set the network as it likes ...)

And, in any case, don't do that unless you agree with the manager of the device at the other end. A network is not something that belongs only to the owner of a machine.
 
Share this answer
 
v2
Comments
czanbiao 14-Nov-11 9:31am    
i just want to do this to check the Network card,only has 100M net speed,but i also want to test whether when i set the speed is 1000M, it can work normal
if i want to do this ,i olny can do it in driver layer?
Emilio Garavaglia 14-Nov-11 15:11pm    
Computer don't have "psychology". I does not metter what you "just want to do" (oh ... my innocent little baby!). It does matter what ANYONE CAN DO if the OS made what you "just want to to" possible. Virus writer will loooooooooove it soooooo much!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900