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