Simple question, how do I make my application process "unstoppable" by the system? I want when a user tries to close the application the message "Access is denied" appears, and when it forces the kernel to terminate the CRITICAL_PROCESS_DIED kernel error. This is what happens with the wininit.exe
process by the CMD:
C:\> taskkill /im wininit.exe
ERRO: o processo "wininit.exe" com PID 532 não pôde ser finalizado.
Razão: Acesso negado.
Not even the WinInit process is displayed in the task manager. Can you programmatically make the application close without any problems and another time be endless?