internal FileTypeAssociation(string ext, RegistryKey key, bool readOnly) : base(key, readOnly) { Extension = ext; var owpi = readOnly ? key.OpenSubKey("OpenWithProgIds", false) : key.CreateSubKey("OpenWithProgIds", RegistryKeyPermissionCheck.ReadWriteSubTree); OpenWithProgIds = new RegBasedKeyCollection(owpi, readOnly); }
internal FileTypeAssociation(string ext, RegistryKey key, bool readOnly) : base(key, readOnly) { Extension = ext; OpenWithProgIds = new RegBasedKeyCollection(key.OpenSubKey("OpenWithProgIds", !readOnly), readOnly); }
internal AppRegistration(RegistryKey key, RegistryKey appKey, bool readOnly) : base(key, readOnly) { this.appKey = new AppSubKey(appKey, readOnly); SupportedTypes = new RegBasedKeyCollection(appKey.OpenSubKey("SupportedTypes", !readOnly), readOnly); Verbs = new CommandVerbDictionary(this.appKey, ReadOnly); }