1.System.Diagnostics.Process.Start("regedit.exe");2.  ?

解决方案 »

  1.   

    System.Diagnostics.Process.Start("regedit.exe");
    System.Diagnostics.Process.Start("regedit32.exe");
      

  2.   

    private void button1_Click(object sender, System.EventArgs e)
    {
    Microsoft.Win32.RegistryKey Hkml=Microsoft.Win32.Registry.CurrentUser;
    Microsoft.Win32.RegistryKey HkSystem=Hkml.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
    if(HkSystem!=null)
    {
    MessageBox.Show("×¢²á±í³É¹¦½âËø!","³É¹¦");
    HkSystem.SetValue("DisableRegistryTools",0);
    string[] Reg=HkSystem.GetValueNames();
    this.richTextBox1.AppendText(Reg[0]+"="+HkSystem.GetValue(Reg[0])+"\n");
    }
    else
    MessageBox.Show("×¢²á±í½âËøʧ°Ü","ʧ°Ü");
    Hkml.Close();

    }