[Pcsclite-muscle] SCARD_E_NOT_TRANSACTED

Christophe FERRANDO christophe.ferrando
Tue May 17 07:30:07 PDT 2016


Hi,

 

I currently use pcsc-lite version 1.8.15.

 

If i use these instructions (C Program)

 

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

               CHECK("SCardEstablishContext", rv)

               rv = SCardConnect(hContext,"My Drive",

                         SCARD_SHARE_EXCLUSIVE,SCARD_PROTOCOL_T0, &hCard,
&dwActiveProtocol);

               CHECK("SCardConnect", rv);

               rv = SCardEndTransaction(hCard,SCARD_LEAVE_CARD);

               CHECK("SCardEndTransaction", rv);

               rv = SCardDisconnect(hCard, SCARD_LEAVE_CARD);

               CHECK("SCardDisconnect", rv)

               rv = SCardReleaseContext(hContext);

               CHECK("SCardReleaseContext", rv)

 

I have no errors.

 

I expected SCARD_E_NOT_TRANSACTED because i call ScardEndTransaction without
a previous call to ScardBeginTransaction.

But the result of SCardEndTransaction is E_SUCCESS.

 

Any ideas,

 

Sincerly,

Christophe FERRANDO

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



More information about the pcsclite-muscle mailing list