Find application using port

后端 未结 2 469
旧时难觅i
旧时难觅i 2021-01-14 12:40

I have a networking program setup that does a lot of what the nestat program does. I am working now on netstat -o. That command will give me the PID of the program using t

相关标签:
2条回答
  • 2021-01-14 13:18

    Go here http://www.codeproject.com/KB/IP/iphlpapi2.aspx I have used it and it works really well.

    0 讨论(0)
  • 2021-01-14 13:19

    AFAIK, this information is not exposed anywhere in the BCL or WMI. You'll need to p/Invoke GetExtendedTcpTable to get it.

    0 讨论(0)
提交回复
热议问题