Click to See Complete Forum and Search --> : determining the process id/name that owns a tcp connection


balas
November 11th, 2003, 05:18 AM
Hi all

I need to write a program that displays all tcp connections on a Windows 2000 host and the process id/name that owns the connection.
I'm aware of TCPView and that does the same (and much more!).
I do know how to acheive this on Windows XP - using the iphlp.dll and the extended TCP Table information; however I have no clue on how to go about doing this on Windows 2000.

Any help is greatly appreciated.

thanks in advance
Balu

AdaraCD
November 12th, 2003, 06:57 AM
Search in google groups for portuser.cpp from Gary Nebbett
You will need the DDK for that