Anyone know of a way to tell if a program is running given the EXE name?

For example,

ret = IsProgramRunning("c:\Windows\regedit.exe")
if ret = true then msgbox("it's running!"


????