Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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
Comments
Logi Guna 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

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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900