I need to detect whether an application is already running or not. Is there any MFC or API function to do this? Also, I need to detect if the application is being started, i.e., it's "almost" running... I don't know if both are the same thing for WinCE. The fact is that I may only have one instance of a given application.