Example #1
0
 private static void ApplyDDEXKeys(WrappedRegistryKey root)
 {
     using (root)
     {
         ApplyDDEXKeys(root, RegPath);
         ApplyDDEXKeys(root, RegPath64);
     }
 }
Example #2
0
 public DDEXKeys(WrappedRegistryKey vsKey)
 {
     if (vsKey != null)
     {
         VsKey            = vsKey;
         DataProvidersKey = WrappedRegistry.OpenSubKey(vsKey, "DataProviders", true);
         DataSourcesKey   = WrappedRegistry.OpenSubKey(vsKey, "DataSources", true);
     }
 }
Example #3
0
 private static void ApplyDDEXKeys(WrappedRegistryKey root, string vsRegPath)
 {
     using (var vsRootKey = WrappedRegistry.OpenSubKey(root, vsRegPath, false))
     {
         if (vsRootKey != null)
         {
             foreach (var vsKeyName in vsRootKey.GetSubKeyNames().Where(x => ValidVsVersion(x)))
             {
                 using (var ddexKeys = new DDEXKeys(WrappedRegistry.OpenSubKey(vsRootKey, vsKeyName, false)))
                 {
                     ddexKeys.Apply();
                 }
             }
         }
     }
 }
Example #4
0
 private static IEnumerable <WrappedRegistryKey> GetAssemblyFoldersExKeys(WrappedRegistryKey root, string regPath)
 {
     using (var rootKey = WrappedRegistry.OpenSubKey(root, regPath, false))
     {
         if (rootKey != null)
         {
             foreach (var version in Versions)
             {
                 var versionKey           = WrappedRegistry.OpenSubKey(rootKey, version, false);
                 var assemblyFoldersExKey = WrappedRegistry.OpenSubKey(versionKey, "AssemblyFoldersEx", true);
                 if (versionKey != null && assemblyFoldersExKey != null)
                 {
                     yield return(assemblyFoldersExKey);
                 }
             }
         }
     }
 }