Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Running Application

Status
Not open for further replies.

martinc

Programmer
Aug 18, 2000
3
US
I have a VB app and I would like to have a function that detects if a particular process is currently running on the machine. How would I do this?
 
Yeah, I saw those after, but neither worked the way I needed it to. The first only detects apps and not processes and the second just doesn't work with the Kernel32.dll on my machine (NT4SP6). Anyone else know of any alternatives?
 
<br>I know that there is an API that will enumerate processes that are currently active called &quot;EnumProcesses&quot;.<br><br>Perhaps there is another one that will detect a specific process or maybe you can use the enumeration API and find the one you're after from that list.<br><br>Anyway, food for thought!
 
Patience is a virtue! After searching for proecesses in the MSDN library and slowly scanning the 100s of results returned I found exactly what I needed in:<br><br>HOWTO: List Running Processes<br>ID: Q187913 <br>&nbsp;<br>There is a load of code that I copied and pasted and it just works - now i'm off to find out WHY.<br><br>Thanks for the help.<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top