Click here to Skip to main content
12,951,732 members (84,424 online)
Rate this:
 
Please Sign up or sign in to 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 2-Jan-13 23:26pm
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

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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,229
CHill60 3,490
Maciej Los 3,083
Jochen Arndt 1,975
ppolymorphe 1,880


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2017
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