Posted on 2004-07-30
I am able to get a list of running processes, but I am having trouble terminating targeted processes.
I have a list of the running processes, and I want to terminate a process according to the process name.
For example, if explorer.exe is running and iexplore.exe is running with a bunch of other processes, what I want is to target explorer.exe and iexplorer.exe and end those processes without ending the others in the list.
I have tried the TerminateProcess function and I cannot get it to work.
If you have a function that will work by my passing a process name to it I would greatly appreciate it.
For example: Call EndProcess("explorer.exe")