How can i kill the processes which are not on the task manager  
Author Message
osman ayhan





PostPosted: .NET Base Class Library, How can i kill the processes which are not on the task manager Top

Hi to all...

I want to kill a proccess.Normally i do this by;

Dim prs As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcesses

Dim i As Integer = 0

While i < prs.Length

prs(i).Kill()

System.Math.Min(System.Threading.Interlocked.Increment(i), i - 1)

End While

and this works fine...

But some procceses that i can not see by TASKMANAGER but by procexp.exe (which show system internals)

programm shows some other processes which are running..

I want to kill some processes which are listed in this list...

The method above only look for the processes which are listen in the Task Manager.

How can we do this

as a conclusion;I want to kill any proccess or thread which is running on the CPU or having any memory on RAM

Thanks in advance...



.NET Development15  
 
 
nobugz





PostPosted: .NET Base Class Library, How can i kill the processes which are not on the task manager Top

This doesn't sound good, I've never seen ProcExp show processes that were not visible in TaskMan. What are the process names of the ones that TaskMan does not show


 
 
osman ayhan





PostPosted: .NET Base Class Library, How can i kill the processes which are not on the task manager Top

It's an exe which i have built it..

Lets say its name is

SMSF reStarter.exe

(Which is an console application)