def with_reg(access_mask = Win32::Registry::Constants::KEY_ALL_ACCESS, &block)
      @hkey.open(@reg_path, access_mask, &block)
    end
def with_reg(access_mask = Win32::Registry::Constants::KEY_ALL_ACCESS, &block)
      @hkey.open(@reg_path, access_mask, &block)
    end
Execute block with the current reg settings