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