I'm searching a windows API that return the same statistics of netstat -s
Asked
Active
Viewed 5,028 times
4
-
Googled. http://www.codeproject.com/Articles/4173/Windows-netstat-application – Drew Dormann Mar 29 '13 at 16:19
-
1This question is not an opinion: it's asking if there is a Windows API to return netstat statistics. I'm looking for precisely this. Actually, GetExtendedTcpTable is what I need. I was greatly helped by @Johnny Mnemonic's answer which appeared to slip through. – Pierre May 16 '15 at 21:37
1 Answers
6
You can use the GetIpStatistics()
function.
See here for more information and example:
http://msdn.microsoft.com/en-us/library/aa365959(VS.85).aspx

Johnny Mnemonic
- 3,822
- 5
- 21
- 33