PDA

View Full Version : Problem (WXP-Pro)



3388
07-23-2005, 08:53 PM
I'm programming an application.

One of its features is that restricted users are unable to terminate it by Task Manager.

However, I find that the creation of "DisableTaskMgr" on either
"[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\System]" or
"[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Policies\System]"
does not work.

How can I do ?



<P ID="edit"><FONT class="small">Edited by 3388 on 07/23/05 14:54.</FONT></P>

motoflop
07-27-2005, 11:53 AM
I'm not expert on this area, but I think you are looking the answer from wrong place. Windows policies doesn't offer method to prevent terminating task from task manager. I belive that your program must establish process level security.

Search from MSDN -&gt; Platform SDK -&gt; Windows base services -&gt; Security. I suggest you check if SetSecurityInfoEx function could do the trick for you. I assume that with it you could set your program so that only administrator have proper access rights to kill your program while it is running.

3388
07-28-2005, 02:02 AM
Thanks !