Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

TCPView is a Sysinternals tool that gives a superset of information of netstat. It gives per connection stats such as packets/ bytes sent/ received.

It uses Windows IP Helper API GetPerTcpConnectionEStats and GetPerTcp6ConnectionEStats presumably for TCP and TCP6 sockets.

However IP helper does not have similar functions for UDP. Moreover IPHelper does not support XP. But TCPView gives stats for UDP sockets and works on XP too.

TCPView has a binary resource embedded which I read somewhere could be a driver that supports getting the stats. I deleted this resource and saved the exe and still it runs the same on XP and WIndows 7.

Can someone help how TCPView is showing stats for UDP sockets and work on XP as well.

Thanks in advance.
MK.
Posted
Updated 25-Oct-10 19:00pm
v3

1 solution

I'm not 100% sure that tcpview uses GetPerTcpConnectionEStats as you mention, in fact, im pretty sure that it doesn't use them, if you look at the PE these calls are not imported. (but i may be wrong on this)

What i can tell you for sure is that TCPview leverages on ETW for monitoring network activity.
Search for APIs StartTrace, OpenTrace, ProcessTrace.

I'm about to implement the same functionality and im running into these issues as well, hope this helps...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900