[Pcsclite-muscle] SCardEndTransaction(hCard,SCARD_EJECT_CARD);

Christophe FERRANDO christophe.ferrando
Fri Jun 3 01:32:19 PDT 2016


Hi,

 

I should apologize.

I test with two differents readers with pcsclite version 1.8.16 and 1.8.17.

 

It appears that one of the reader doesn?t detect card insertion.

 

Christophe

 

 

De : Pcsclite-muscle [mailto:pcsclite-muscle-bounces+christophe.ferrando=sylyca.com at lists.alioth.debian.org] De la part de Ludovic Rousseau
Envoy? : vendredi 3 juin 2016 10:00
? : Talks about MUSCLE <pcsclite-muscle at lists.alioth.debian.org>
Objet : Re: [Pcsclite-muscle] SCardEndTransaction(hCard,SCARD_EJECT_CARD);

 

2016-06-02 18:03 GMT+02:00 Christophe FERRANDO <christophe.ferrando at sylyca.com <mailto:christophe.ferrando at sylyca.com> >:

Hi,

 

Hello Christophe,
 

 

With the last pcsclite version, i have a return of ScardEndTransaction = 

SCardEndTransaction:[8010001f] Feature not supported.

      case 577 : {

               rv = SCardEstablishContext(SCARD_SCOPE_USER, NULL, NULL, &hContext);

               CHECK("SCardEstablishContext", rv)

               rv = SCardConnect(hContext,mszReaders,

                         SCARD_SHARE_EXCLUSIVE,SCARD_PROTOCOL_T0, &hCard, &dwActiveProtocol);

               CHECK("SCardConnect", rv);

               rv = SCardBeginTransaction(hCard);

               CHECK("SCardBeginTransaction", rv);

               printf("Enleve la carte, puis appuie sur une touche!\n");getchar();

               rv = SCardEndTransaction(hCard,SCARD_EJECT_CARD);

               CHECK("SCardEndTransaction", rv);

               rv = SCardDisconnect(hCard, SCARD_LEAVE_CARD);

               CHECK("SCardDisconnect", rv)

               rv = SCardReleaseContext(hContext);

               CHECK("SCardReleaseContext", rv)

               break;

      }

 

With the previous version, I had :

SCardEndTransaction:[80100069] Card was removed.

 

What is this "previous version" exactly?

Bye

-- 

 Dr. Ludovic Rousseau

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20160603/878cf8f1/attachment.html>



More information about the pcsclite-muscle mailing list