diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/Microsoft/Win32/RegistryKey.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/Microsoft/Win32/RegistryKey.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/Microsoft/Win32/RegistryKey.cs b/src/System.Private.CoreLib/src/Microsoft/Win32/RegistryKey.cs index 1fd407afa..ecf8376ed 100644 --- a/src/System.Private.CoreLib/src/Microsoft/Win32/RegistryKey.cs +++ b/src/System.Private.CoreLib/src/Microsoft/Win32/RegistryKey.cs @@ -167,6 +167,11 @@ namespace Microsoft.Win32 DeleteValueCore(name, throwOnMissingValue); } + public static RegistryKey OpenBaseKey(RegistryHive hKey) + { + return OpenBaseKey(hKey, RegistryView.Default); + } + public static RegistryKey OpenBaseKey(RegistryHive hKey, RegistryView view) { ValidateKeyView(view); @@ -530,7 +535,7 @@ namespace Microsoft.Win32 // the dispose below and usage elsewhere (other threads). This is By Design. // This is less of an issue when OS > NT5 (i.e Vista & higher), we can close the perfkey // (to release & refresh PERFLIB resources) and the OS will rebuild PERFLIB as necessary. - Interop.mincore.RegCloseKey(RegistryKey.HKEY_PERFORMANCE_DATA); + Interop.Advapi32.RegCloseKey(RegistryKey.HKEY_PERFORMANCE_DATA); } } } @@ -552,5 +557,9 @@ namespace Microsoft.Win32 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) { } } } |