VB.NET:
Private Sub DisableTaskManager(ByVal cmd As Integer)
Dim systemRegistry As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System")
systemRegistry.SetValue("DisableTaskMgr", cmd)
systemRegistry.Close()
End Sub
Code above is working on windows XP, but using this code in some windows 7 OS, returns an error.
Is there a way of force edit this in windows 7?