Ok so i have this md5 scanner antivirus ive been working on and i wanted to add a process killer but some viruses have persistent processe which reappear and its annoying! Is there any way in VB.Net to lets say kill all procs with serv* or haha etc.
I have to kill a process (an exe file) that does not have a distinctive name. All I know are the first two chars of its name for eg "3D". I have tried to use wildcards (3d*) but these do not work.
I have managed to verify that the process is running but I can't figure out how to search through...
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
For Each RunningProcess In Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName)
If (Not RunningProcess.Id = Process.GetCurrentProcess().Id) Then...
Can anyone tell me how to kill a thread immediately.
I have tried MyThread.Abort, but it seems to do nothing. Someone told me it's because 'Abort' waits for the current operation to complete, but my thread will run for over 30 minutes before that happens.
Any help would be appreciated.