Example #1
0
        public GlobalSystemState()
        {
            RegistryKey hklm64 = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
            RegistryKey reg    = hklm64.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile");

            netThrottling            = new Tunable(reg.GetValue("NetworkThrottlingIndex", 10), 10, 70, RegistryValueKind.DWord);
            backgroundReservedCpuPct = new Tunable(reg.GetValue("SystemResponsiveness", 20), 20, 0, RegistryValueKind.DWord);

            reg.Close();
            hklm64.Close();
        }