I would like to count the bytes received and sent from specific UDP connections in Windows 10.
This answer lists an approach to count bytes for specific TCP connections using GetPerTcpConnectionEStats()
from the IP Helper API (iphlpapi.dll
). I would like to mirror this approach for UDP connections.
The IP Helper API provides UDP and TCP implementations for almost all functions (e.g., GetTcpTable()
, GetUdpTable()
), except the documentation does not list GetPerUdpConnectionEStats()
.
This answer references the function nevertheless.
Is is possible to get counts of bytes received and sent from specific UDP connections with the IP Helper API?