Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows Networking
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 25-Oct-10 4:41am
Edited 25-Oct-10 20:00pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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...
  Permalink  

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

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 DamithSL 225
3 Afzaal Ahmad Zeeshan 202
4 Maciej Los 190
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web02 | 2.8.1411019.1 | Last Updated 15 Jun 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100