See Also: SafeRegistryHandle Members
You can use platform invoke on the native RegCreateKeyEx Windows function to obtain a Microsoft.Win32.SafeHandles.SafeRegistryHandle object, and then use it to create registry keys with the Microsoft.Win32.RegistryKey.FromHandle(SafeRegistryHandle, Microsoft.Win32.RegistryView) method.