I am making a small program that will monitor a user . . .
something like a parental controls security software . . .
Now I like to prevent users from killing my process . . .
So I decided to set the process's security descriptor using SetKernelObjectSecurity() and it worked prevented regular users from
killing my process, so, how to prevent administrators from killing my process!
Just imagine if an administrator is using the computer and suddenly a program
shows up saying that it wants to run as admin . . .
And if he accidentaly give 'Yes' then the first thing its going to do is to kill
my process . . .
So how will I prevent administrators from killing my process . . .
Programs like Avast and Kaspersky have a self defence mechanism
in which trying to kill the process will cause "Access Is Denied" even by administrator
So, how will I integrate this into C++ using WINAPI
Im using Dev C++
windows 7 ultimate 32 bit
And I also knew that certain antivirus programs hook NtTerminateProcess() etc .
You see, I dont want to hook any of those functions, okay ?
So, guys please please help me . . .
I will be very happy if you help me !