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

As question goes.
Anti-TrustAsked:
Who is Participating?
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
0

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
0
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
0
Anti-TrustAuthor Commented:
Any for C++ ?
0
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
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.