How can I access Ethernet statistics from C/C++ code like netstat -e?
Interface Statistics
Received Sent
A good place to start for network statistics would be the GetIpStatistics call in the Windows IPHelper functions.
There are a couple of other approaches that are possibly more portable:-