Get app path by socket port

后端 未结 3 1971
慢半拍i
慢半拍i 2020-12-18 07:08

Lets assume you have a app that opens a socket port for comunication purpose. How can i get the path of this app only by knowing its port? I wanna do what netstat -b does. I

3条回答
  •  温柔的废话
    2020-12-18 07:25

    For correct number of port you must using function WinSock

    ntohs(FExtendedTcpTable.Table[i].dwLocalPort)
    

提交回复
热议问题