zl程序教程

您现在的位置是:首页 >  其他

当前栏目

隐藏任务管理器里面的程序?

程序 任务 隐藏 里面 管理器
2023-09-11 14:16:42 时间
private  void SetKey(bool enableTaskManager)
{
  using (
      var mKey =
          Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"))
  {
      if (mKey != null)
      {
          mKey.SetValue("DisableTaskMgr", enableTaskManager ? 0 : 1);
      }
  }
}