How can I access Ethernet statistics from C/C++ code like netstat -e?
Interface Statistics Received Sent
You might find a feasable WMI performance counter, e.g. Win32_PerfRawData_Tcpip_NetworkInterface.