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: Wrong again. Time to find a new hobby, like collecting stamps for example. -6
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

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