public string GetSzValue(string name) { if (!Exists) { return(null); } return(WinApiRegistryHelper.ReadRegistryKeySzValue(handle, name)); }
protected override void DisposeUnmanaged() { if (handle != IntPtr.Zero) { WinApiRegistryHelper.CloseRegistryKey(handle); } handle = IntPtr.Zero; base.DisposeUnmanaged(); }
public WinApiRegistryKey(RegistryHive hive, string key, WinApiRegistryHelper.ResigtryAccess access) { handle = WinApiRegistryHelper.OpenRegistryKey(hive, key, access); }