How do I check if an Application is running?

Thanks...not good with APIs