SCardEndTransaction(hCard,SCARD_EJECT_CARD);

"Christophe FERRANDO" <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <[email protected]>
Hi,

 

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.

 

May be a little problem,

 

Sincerly,

Christophe FERRANDO

_______________________________________________
Pcsclite-muscle mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.