Is there any Carbon/Cocoa/C API available on Macs that I can use to enumerate processes? I'm looking for something like `EnumProcesses` on Windows.

My goal is to check from code whether a process is running (by name).

Thanks!