Introduct a mini-PAL into Microsoft.Win32.Registry
authorStephen Toub <stoub@microsoft.com>
Thu, 16 Jun 2016 02:25:25 +0000 (22:25 -0400)
committerStephen Toub <stoub@microsoft.com>
Thu, 23 Jun 2016 17:58:39 +0000 (13:58 -0400)
commitb81fdc495298dad5d95fb6a0e5f9df9ab18407ab
treef522aecdd0ece47de480d942f22d3523257140ca
parentdd31a5a16a113f1e17dd4f088c9af5830b20f28c
Introduct a mini-PAL into Microsoft.Win32.Registry

With the expectation that we'll at some point want to make Microsoft.Win32.Registry work on other systems, with a file-system-based simulation of the registry, this commit separates out the shared functionality from the platform-specific functionality, providing placeholders where a file-system-based implementation could be plugged in.

Commit migrated from https://github.com/dotnet/corefx/commit/e36e8cab303fa8aafa5af735bb1b3d58af0e5a52
14 files changed:
src/libraries/Microsoft.Win32.Registry/Microsoft.Win32.Registry.sln
src/libraries/Microsoft.Win32.Registry/src/Microsoft.Win32.Registry.csproj
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/Registry.cs
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryHive.cs [new file with mode: 0644]
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryKey.FileSystem.cs [new file with mode: 0644]
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryKey.Windows.cs [new file with mode: 0644]
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryKey.cs
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryValueKind.cs
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryValueOptions.cs [new file with mode: 0644]
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryView.cs
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/SafeHandles/SafeRegistryHandle.FileSystem.cs [new file with mode: 0644]
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/SafeHandles/SafeRegistryHandle.Windows.cs [new file with mode: 0644]
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/SafeHandles/SafeRegistryHandle.cs
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/ThrowHelper.cs