Hi Techies,

Can anyone tell me an API or a logic to find if a process is running on a system (local and remote). The problem is detailed below:

1. I launch an application say "Notepad.exe" from another application say "MyApp".
2. Notepad.exe continues to run after I close "MyApp".
3. The second time I run "MyApp", it should check if there is already an instance of "Notepad.exe" running. If yes, it should not launch it.

From the code I will be passing only the application name "Notepad.exe". I am not creating a thread. Is there a single API call which takes the application name and tells if the application is already running in the system [OR] is there a simple method to find this out.

Regards,
KalpanaManuPrasad