Can someone tell me a way to get the PID (Process ID) of a process from its name?

thanks..

Found this link on FrostCode

Stop this spamming with fake question/answer and complete noob and wrong code (original code from MSDN has been posted 15 years ago !)
Read the Petzold to learn Windows programming.

commented: Here, you earn it: some nice red jelly beans :) Always the same useless posts, this time for the 96th time, ever considered to put some effort in writing useful posts? Apparently not! -4
commented: Wrong again. Time to find a new hobby, like collecting stamps for example. -6

Stop this spamming with fake question/answer and complete noob and wrong code (original code from MSDN has been posted 15 years ago !)
Read the Petzold to learn Windows programming.

Oh, shut up.
He provided a good link, you didn't.

commented: Yes! +29

thanks. your link solved the problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.