/// <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(); } }
public void Destroy() { _key.Close(); _hive.Close(); }