Esempio n. 1
0
 /// <summary>
 /// Close hive and key only if open
 /// </summary>
 /// <param name="hivehdl"></param>
 /// <param name="keyhdl"></param>
 static void safeCloseHandles(OffregHive hivehdl, OffregKey keyhdl)
 {
     safeCloseKey(keyhdl);
     if (hivehdl != null)
     {
         hivehdl.Close();
     }
 }
Esempio n. 2
0
 public void Destroy()
 {
     _key.Close();
     _hive.Close();
 }