I am completing a project, creating an application that simulates an antivirus.
The application is in Delphi, what I want to know is how antiviruses do to register a process as a user system, and when you click on finalize the process appears, 'Access Denied!'.
Below I found a single light that registers the process in the system, but without success.
Function RegisterServiceProcess(DwProcessID, dwType: DWord): DWord; StdCall; External 'KERNEL32.dll';
//Para chamar
RegisterServiceProcess(GetCurrentProcessID, 1);
Any light?