Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hi guys
I want code or method in VB.NET application to kill the basic processes which can not be killed, for example antivirus operations
 
In 7 and XP systems can not be killed with taskmanger or process explorer, but in the system win 8 can be easily killed by using taskmanger
 
Is there a code to kill these processes
Posted 2-Jan-13 23:26pm
Comments
Logi Guna at 10-Jan-13 13:26pm
   
Antivirus program might have self-defence, like terminating its process. also killing critical-process can make BlueScreen of death. be careful, see http://stackoverflow.com/questions/4126196/making-application-system-critical-process

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I do not know if it would work but you could try the managed class; System.Diagnostics.Process.Kill
 
or the unmanaged: TerminateProcess
 
http://www.pinvoke.net/default.aspx/kernel32/TerminateProcess.html[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100