get owner for open port


New member
Nov 9, 2004
Programming Experience
I'm trying to code a utility which will show the .exe name for any given open port. For instance, if I ask which program or process is using an open ip port, the utility would return the name of the executable or component that's associated with the open port. I want to use IP Helper (iphlpapi.lib) to do this.

MSDN's reference for IP Helper lists a function called "GetOwnerModuleFromTcp6Entry" which is supposed to do this. My problem is that I can't get this function to work in VB.Net. I just don't get it.

Does anyone know how I can implement this in VB.Net? Is there a tutorial out there that explains this in terms of Visual Basic?
Top Bottom