Пример #1
0
        private void WriteRegistry(CERegistryKey rootKey, string name, object value, params string[] subKeys)
        {
            CERegistryKey key = rootKey;

            foreach (string subKey in subKeys)
            {
                key = key.CreateSubKey(subKey);
            }

            key.SetValue(name, value);
        }
Пример #2
0
        private object ReadRegistry(CERegistryKey rootKey, string name, params string[] subKeys)
        {
            CERegistryKey key = rootKey;

            foreach (string subKey in subKeys)
            {
                key = key.CreateSubKey(subKey);
            }

            return(key.GetValue(name));
        }