public void ZapKey(string path) { if (CUK != null && CUK.HasKey(path)) { WCUK.ZapKey(path); } if (LMK != null && LMK.HasKey(path)) { WLMK.ZapKey(path); } if (SAK != null && SAK.HasKey(path)) { WSAK.ZapKey(path); } }
public void ZapKey(string path) { using (RegKey tgt = Open(path)) { string[] sks = tgt.Keys; if (sks.Length > 0) { using (RegKey wtgt = Open(path, true)) { foreach (string sk in sks) { wtgt.ZapKey(sk); } } } } TheKey.DeleteSubKey(path); }