Possible Duplicate:
How to get Process Name in C++
I am looking for a way to to get the process name from the PID?
I need to translate process id (PID) to process name
any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
it depends on the used platform like Yahia mentioned in his comment.
on linux: you can get the command-line by reading that file:
/proc/[PID]/cmdlineon windows: I’ve found this: get process name from process id (win32)