|
-
November 6th, 2002, 04:39 AM
#1
To find if a process is running.
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|