Both Process32First(...) and Process32Next(...) fill in the variables to a structure called a PROCESSENTRY32: http://msdn.microsoft.com/en-us/library/ms684839(VS.85).aspx which has a data member szExeFile that contains the process name, you should check this variable against the name of the process you are looking for. Another member of note is th32ProcessID which will be the Process ID you pass to the next function.
I replied with this in mind: Lamblion wants to restart its own application.
Computergeek01 replied with this in mind: Lamblion wants to restart some other application currently running.
Now pick. My solution to restart your own app; Computergeek01's to restart another app.