Hi All,
With the code below; I prevent the application from closing.
procedure TForm1.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
CloseAction :=caNone;
end;
But applications such as Taskmanager or Process Explorer can easily close it.
How can I block external shutdown calls?
By the way, there is one more thing I want to know!
Some applications cannot be closed in any way, how do they achieve this, so what is the method?
I would be grateful if you share your knowledge. Respects.