Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
non shared changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anipik committed Aug 17, 2018
1 parent e1cac05 commit c6c8436
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 60 deletions.
34 changes: 0 additions & 34 deletions src/System.Private.CoreLib/src/Microsoft/Win32/Registry.cs

This file was deleted.

24 changes: 0 additions & 24 deletions src/System.Private.CoreLib/src/Microsoft/Win32/RegistryHive.cs

This file was deleted.

9 changes: 9 additions & 0 deletions src/System.Private.CoreLib/src/Microsoft/Win32/RegistryKey.cs
Expand Up @@ -167,6 +167,11 @@ public void DeleteValue(string name, bool throwOnMissingValue)
DeleteValueCore(name, throwOnMissingValue);
}

public static RegistryKey OpenBaseKey(RegistryHive hKey)
{
return OpenBaseKey(hKey, RegistryView.Default);
}

public static RegistryKey OpenBaseKey(RegistryHive hKey, RegistryView view)
{
ValidateKeyView(view);
Expand Down Expand Up @@ -552,6 +557,10 @@ internal static RegistryKey GetBaseKey(IntPtr hKey, RegistryView view)
key._keyName = s_hkeyNames[index];
return key;
}

// This dummy method is added to have the same implemenatation of Registry class.
// Its not being used anywhere.
public void SetValue(string name, object value, RegistryValueKind valueKind) { }
}

[Flags]
Expand Down
3 changes: 3 additions & 0 deletions src/System.Private.CoreLib/src/Resources/Strings.resx
Expand Up @@ -426,6 +426,9 @@
<data name="Arg_RegKeyNotFound" xml:space="preserve">
<value>The specified registry key does not exist.</value>
</data>
<data name="Arg_RegInvalidKeyName" xml:space="preserve">
<value>Registry key name must start with a valid base key name.</value>
</data>
<data name="Arg_SecurityException" xml:space="preserve">
<value>Security error.</value>
</data>
Expand Down
2 changes: 0 additions & 2 deletions src/System.Private.CoreLib/src/System.Private.CoreLib.csproj
Expand Up @@ -347,8 +347,6 @@
<Compile Include="System\WeakReferenceOfT.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)'=='true' and '$(EnableWinRT)'!='true'">
<Compile Include="Microsoft\Win32\Registry.cs" />
<Compile Include="Microsoft\Win32\RegistryHive.cs" />
<Compile Include="Microsoft\Win32\RegistryKey.cs" />
<Compile Include="Microsoft\Win32\RegistryKey.Windows.cs" />
<Compile Include="Microsoft\Win32\RegistryOptions.cs" />
Expand Down

0 comments on commit c6c8436

Please sign in to comment.