RegOpenKeyEx

[DllImport("coredll.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern int RegOpenKeyEx(
   IntPtr hKey,
   string lpSubKey,
   int ulOptions,
   int samDesired,
   out IntPtr phkResult
);

Microsoft documentation: Link

Last updated