Disable Task Manager using c# from Limited User Account

Posted by srk on Stack Overflow See other posts from Stack Overflow or by srk
Published on 2010-06-09T02:30:46Z Indexed on 2010/06/09 2:32 UTC
Read the original article Hit count: 235

Filed under:

I need to disable and enable the taskmanager from my application. I am doing this for my Kiosk application. I know i can do this by changing the Key in registry using below code. But the problem is my kiosk application will run in limited user account which does not allow the application to change key in registry level.

Code working perfectly in Administrator account :

    RegistryKey regkey;
        string keyValueInt = "1";
        string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System";
        regkey = Registry.CurrentUser.CreateSubKey(subKey);
        regkey.SetValue("DisableTaskMgr", keyValueInt);
        regkey.Close();

How can i achieve this in Limited user account ?

© Stack Overflow or respective owner

Related posts about c#