private static void EndTransaction() { ModWinsCard.SCardEndTransaction(hCard, ModWinsCard.SCARD_LEAVE_CARD); ModWinsCard.SCardDisconnect(hCard, ModWinsCard.SCARD_UNPOWER_CARD); ModWinsCard.SCardReleaseContext(hContext); }
public void Dispose() { ModWinsCard.SCardEndTransaction(_hCard, ModWinsCard.SCARD_EJECT_CARD); ModWinsCard.SCardReleaseContext(_hContext); ModWinsCard.SCardDisconnect(_hCard, ModWinsCard.SCARD_EJECT_CARD); }