Search code examples
c++windowswinapitcpipv4

How to use GetTcpIPv4Statistics


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 ?


Solution

  • 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++.