public static RegKey Parse(String keyPath, Boolean writable) { String[] tokens = keyPath.Split(new Char[] { '\\' }, 2); RegistryKey rootKey = Reger.ParseRootKey(tokens[0]); if (tokens.Length == 1) { return(new RegKey(rootKey)); } String path = tokens[1]; String name = keyPath.Substring(keyPath.LastIndexOf('\\') + 1); try { var key = rootKey.OpenSubKey(path, writable); if (key == null) { return(null); } return(new RegKey(name, key)); } catch { return(null); } }
public List <RegKey> GetChilds() { return(Reger.GetChilds(Key)); }
public List <RegValue> GetValues() { return(Reger.GetValues(Key)); }