I want it to delete a specific proccess without have to highlight it how do i do it?
I want to delete msnmsgr.exe if the list without have to press on the list what do i change in this line?
Re: This an example for getting a list of running process and kill any one of them.
do this:
for i = 0 to list1.listcount
if list1.list(i)="msnmsgr.exe " then
Dim Prog As Long
Prog = OpenProcess(PROCESS_TERMINATE, 0, CLng(List1.ItemData(List1.ListIndex)))
If Prog Then
TerminateProcess Prog, 0
CloseHandle Prog
Else
MsgBox "You can't Kill This Process, Maybe because it's important for System"
End If
DoEvents
FillList