public void Close (RegistryKey rkey) { if (!IsHandleValid (rkey)) return; IntPtr handle = GetHandle (rkey); RegCloseKey (handle); }