public static Boolean RegistryDeleteTree(structenums.baseKey RootKey, string SubKey) { int Result = SafeNativeMethods.RegDeleteTree(RootKey, SubKey); if (Result != 0) { Console.WriteLine("CopyKey error:{0}", LastError(Result)); return false; } return true; } /// <summary>