public static UIntPtr RegistryOpenKey(structenums.baseKey RootKey, string SubKey)
{
UIntPtr hKey = UIntPtr.Zero;
int Result = SafeNativeMethods.RegOpenKey(RootKey, SubKey, ref hKey);
if (Result != 0)
{
Console.WriteLine("RegOpenKey error:{0}", LastError(Result));
}
return hKey;
}