Пример #1
0
        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);
        }
Пример #2
0
 internal FileTypeAssociation(string ext, RegistryKey key, bool readOnly) : base(key, readOnly)
 {
     Extension       = ext;
     OpenWithProgIds = new RegBasedKeyCollection(key.OpenSubKey("OpenWithProgIds", !readOnly), readOnly);
 }
Пример #3
0
 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);
 }