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
For correct number of port you must using function WinSock
ntohs(FExtendedTcpTable.Table[i].dwLocalPort)