Is there any way in Win32 to programmatically determine the bandwidth of a given network interface without actually transferring any data? I just want to distinguish between different types of interfaces (for example, dialup vs DSL vs LAN), so the coarse order of magnitude is good, I do not need to actually measure throughput.
The underlying problem is that my application is very hungry, and I want to display a warning to the user if they try to run it through an interface with a low bandwidth, for example. modem or GPRS modem.
I looked at some other related issues , but if possible, I would like to avoid measuring throughput. GPRS modems, in particular, may have restrictions on use, and I do not want to be in the user manual - I would rather detect a bad connection in some other way and not send any data at all.
I'm most interested in Win32 / C ++ answers, but any ideas would be greatly appreciated.
c ++ winapi networking bandwidth
snowcrash09
source share