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