RegOpenKey

[DllImport("Advapi32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.U4)]
public static extern uint RegOpenKey(
   IntPtr hKey,
   string lpSubKey,
   out IntPtr phkResult
);

Microsoft documentation: Link

Last updated