RE: FormClosing Event by MortenWennevik
MortenWennevik
Mon Mar 10 05:07:08 CDT 2008
Hi,
I haven't tested this, but apparantly you are able to launch programs using
the system account (LocalSystem) by having a windows service running as
LocalSystem and make that service launch your program. This should prevent
even an administrator from terminating the app, although it wouldn't prevent
him from disabling the service and restarting the computer. If you need to
prevent even this you need to run windows in kiosk mode (which would prevent
task manager from being accessible as well).
I'm afraid I don't have any samples for how this is being done, but the
general idea is
Create a windows service that launches your application
Create an installer for the windows service that specifies LocalSystem as
the account it should run under (note this can be overruled during and after
installation) as well as Automatic startup.
Reboot the computer.
--
Happy Coding!
Morten Wennevik [C# MVP]
"DarxOman" wrote:
> thanx Morten
>
> But would you explain more on How to "elevate the process privileges to
> something that the logged on user is not allowed to terminate, like running
> as System."
>
>