How does Windows "netstat -b" determine the name of the process to which each socket belongs?

I am looking for the main API calls that netstat -b uses to define ownership processes for each socket. Any ideas?

+6
windows api sockets
source share
1 answer

You need to look at the IPHelper APIs, in this case specifically GetExtendedTcpTable and GetOwnerModuleFromTcpEntry

+3
source share

All Articles