I want to get TCP/UDP IPv4 statistics. I serached and I found GetTcpIPv4Statistics
API. SO, how to use it to get TCP/UDP statistics in a c++ code ?
That appears to be a .net method only, it calls the underlying GetTcpStatisticsEx
IP Helper API which is what you want to use from unmanaged C++.