Anyone know how do I code Port-to-PID (Process ID) mapping?

As question goes.
Anti-TrustAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Darrell PorterEnterprise Business Process ArchitectCommented:
Look here:  http://www.sysinternals.com/ntw2k/source/tcpview.shtml
and download the code with source from here: http://www.sysinternals.com/files/netstatp.zip
and download the GUI version from here:  http://www.sysinternals.com/files/tcpview.zip

hope this helps,

Walkabout

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
riotzCommented:
this is one coded in delphi and the best of its kinds i would say

http://www.rootkit.host.sk/download/OpPorts12.zip
mugman21Commented:
Anti-Trust,

here is a version in Visual Basic, it maps pid, process,  port, and protocol.

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=54119&lngWId=1

Mugman
Anti-TrustAuthor Commented:
Any for C++ ?
Darrell PorterEnterprise Business Process ArchitectCommented:
C++ solution

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8703&lngWId=3

sorry for the late response - have been buried at work.

Walkabout
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.