Click here to Skip to main content
16,012,611 members
Home / Discussions / C#
   

C#

 
GeneralRe: Timer Control Pin
dalila y19-Feb-10 5:49
dalila y19-Feb-10 5:49 
GeneralRe: Timer Control Pin
Pete O'Hanlon19-Feb-10 6:11
mvePete O'Hanlon19-Feb-10 6:11 
GeneralRe: Timer Control Pin
dalila y19-Feb-10 18:54
dalila y19-Feb-10 18:54 
QuestionRetrieve IP Address and compare with database Pin
dalila y19-Feb-10 5:13
dalila y19-Feb-10 5:13 
AnswerRe: Retrieve IP Address and compare with database Pin
PIEBALDconsult19-Feb-10 6:42
mvePIEBALDconsult19-Feb-10 6:42 
GeneralRe: Retrieve IP Address and compare with database Pin
dalila y19-Feb-10 16:24
dalila y19-Feb-10 16:24 
GeneralRe: Retrieve IP Address and compare with database Pin
PIEBALDconsult19-Feb-10 17:40
mvePIEBALDconsult19-Feb-10 17:40 
Questionhow can i kill a protected process?? [modified] or a SYSTEM process ?? Pin
andyxfun19-Feb-10 4:46
andyxfun19-Feb-10 4:46 
hello!
i must tell you from the beginning that i am a C# newbie so please bare with me... Smile | :)
i just started learning C# a month or so ago so i am just at the beginning of (what seems to be) a very interesting journey.
my current project demands that i kill any process specified by the user.
i already finished the first part of the program:
the user inputs the name of the program,actually the process, and then clicks the "terminate" button.
the program takes the name and kills the process with the same given name. it shows the "success" message in a text box if anything is OK or shows a message box if some specified errors occur.
now all that works for any ordinary process, the process gets killed, no questions asked!
but
what about protected processes???
i tried to kill my AV process (i use AVAST free, up-to-date version) and it catches a "protected process" error... Confused | :confused:
the fact is that this error may occur in different cases,even spywares use certain methods to ensure that killing their program is impossible... Hmmm | :|

now,my obvious question is: how to bypass the process protection and kill those pesky,protected processes??

i have two guesses:

1) there may be some sort of special privileged mode to call the kill function in C# like some special administrator or something

or

2) (here i need serious help as i am a total noob at this part: ) there may be a way to add some info to some windows registry files (if that's what they're called) so that every time windows boots up and starts loading programs,my prog will start up first and block the others from booting up or even deletes the process' sources. Of course,this has to be done entirely by my C# code and i know that a noob like me messing up with window's components' codes may really F**K up the OS for good ... Dead | X|
that's why i really need help...

thanx a lot in advance! Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:

ps: i now see that what i am referring to is a SYSTEM -driven process.
so yes, can you tell me how to kill a SYSTEM process using C#??

Thumbs Up | :thumbsup: Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:
modified on Friday, February 19, 2010 10:52 AM

AnswerRe: how can i kill a protected process?? [modified] or a SYSTEM process ?? Pin
Dave Kreskowiak19-Feb-10 9:28
mveDave Kreskowiak19-Feb-10 9:28 
QuestionNeed a class that will implemnt strings Pin
joejack22219-Feb-10 4:35
joejack22219-Feb-10 4:35 
AnswerRe: Need a class that will implemnt strings Pin
OriginalGriff19-Feb-10 4:56
mveOriginalGriff19-Feb-10 4:56 
GeneralRe: Need a class that will implemnt strings [modified] Pin
joejack22219-Feb-10 5:01
joejack22219-Feb-10 5:01 
GeneralRe: Need a class that will implemnt strings Pin
Eddy Vluggen19-Feb-10 7:05
professionalEddy Vluggen19-Feb-10 7:05 
AnswerRe: Need a class that will implemnt strings Pin
PIEBALDconsult19-Feb-10 6:41
mvePIEBALDconsult19-Feb-10 6:41 
GeneralRe: Need a class that will implemnt strings Pin
joejack22219-Feb-10 7:14
joejack22219-Feb-10 7:14 
QuestionI need to create 150 variable names....need an efficient way of doing it Pin
Sundeepan Sen19-Feb-10 4:27
Sundeepan Sen19-Feb-10 4:27 
AnswerDon't Pin
Ennis Ray Lynch, Jr.19-Feb-10 4:36
Ennis Ray Lynch, Jr.19-Feb-10 4:36 
QuestionRe: I need to create 150 variable names....need an efficient way of doing it Pin
harold aptroot19-Feb-10 4:37
harold aptroot19-Feb-10 4:37 
AnswerMessage Closed Pin
19-Feb-10 4:39
stancrm19-Feb-10 4:39 
GeneralRe: I need to create 150 variable names....need an efficient way of doing it Pin
Sundeepan Sen19-Feb-10 4:49
Sundeepan Sen19-Feb-10 4:49 
GeneralRe: I need to create 150 variable names....need an efficient way of doing it Pin
monstale19-Feb-10 4:59
monstale19-Feb-10 4:59 
GeneralRe: I need to create 150 variable names....need an efficient way of doing it Pin
Sundeepan Sen19-Feb-10 5:03
Sundeepan Sen19-Feb-10 5:03 
QuestionRe: I need to create 150 variable names....need an efficient way of doing it Pin
monstale19-Feb-10 5:05
monstale19-Feb-10 5:05 
AnswerRe: I need to create 150 variable names....need an efficient way of doing it Pin
Sundeepan Sen19-Feb-10 5:12
Sundeepan Sen19-Feb-10 5:12 
AnswerRe: I need to create 150 variable names....need an efficient way of doing it Pin
monstale19-Feb-10 5:15
monstale19-Feb-10 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.