I would like to programatically check the connection speed at which a
user has connected. Based on the connection speed, I would like to
launch an application with specific parameters.
Is there a way to do this in WMI / VBS / C++ / Win API ?
You're probably asking the wrong questions. Consider a LAN.
Knowing that you are connected at 10Mbit, 100Mbit, or 1Gbit
is helpful but generally useless. The reason is that you
have to share that connection with others on the network,
other tasks the user has on their machine, and what the
computer is currently capable of doing.
A more useful question might be to ask what the throughput
and latency of the network and computer can provide.
Obviously this may vary over the lifetime of your
application's conversations. An adaptive and well
responding protocol is probably more helpful.
You might consider using a sample conversation and then
deciding on which parameters to use for the application.
That isn't very useful if the network performance suddenly
changes though.
David