标签:
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); } } }
标签:
原文地址:http://www.cnblogs.com/eastson/p/4203994.html