Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

LONG SCardCancelTransaction ( SCARDHANDLE  hCard  ) 

Deprecated:
This function is not in Microsoft(R) WinSCard API and is deprecated in pcsc-lite API.

Definition at line 1035 of file winscard.c.

References rxSharedSegment::data, cancel_struct::hCard, _psContextMap::psChannelMap, psContextMap, _psChannelMap::readerName, SCardCheckDaemonAvailability(), SCardLockThread(), SCardUnlockThread(), SHMClientRead(), SYS_MutexLock(), SYS_MutexUnLock(), and WrapSHMWrite().

Referenced by MSGFunctionDemarshall().

{
      LONG rv;
      PREADER_CONTEXT rContext = NULL;

      /*
       * Ignoring dwDisposition for now
       */
      if (hCard == 0)
            return SCARD_E_INVALID_HANDLE;

      rv = RFReaderInfoById(hCard, &rContext);

      /*
       * Cannot find the hCard in this context
       */
      if (rv != SCARD_S_SUCCESS)
            return rv;

      rv = RFFindReaderHandle(hCard);
      if (rv != SCARD_S_SUCCESS)
            return rv;

      /*
       * Make sure some event has not occurred
       */
      if ((rv = RFCheckReaderEventState(rContext, hCard)) != SCARD_S_SUCCESS)
            return rv;

      rv = RFUnlockSharing(hCard);

      Log2(PCSC_LOG_DEBUG, "Status: %d.", rv);

      return rv;
}


Generated by  Doxygen 1.6.0   Back to index