[Pcsclite-cvs-commit] r2381 - trunk/PCSC/doc/example

Ludovic Rousseau rousseau at alioth.debian.org
Mon Feb 5 14:34:36 CET 2007


Author: rousseau
Date: 2007-02-05 14:34:36 +0100 (Mon, 05 Feb 2007)
New Revision: 2381

Modified:
   trunk/PCSC/doc/example/pcsc_demo.c
Log:
use SCARD_SHARE_SHARED instead of SCARD_SHARE_EXCLUSIVE


Modified: trunk/PCSC/doc/example/pcsc_demo.c
===================================================================
--- trunk/PCSC/doc/example/pcsc_demo.c	2007-02-05 13:32:11 UTC (rev 2380)
+++ trunk/PCSC/doc/example/pcsc_demo.c	2007-02-05 13:34:36 UTC (rev 2381)
@@ -155,7 +155,7 @@
 
 	/* connect to a card */
 	dwActiveProtocol = -1;
-	rv = SCardConnect(hContext, readers[reader_nb], SCARD_SHARE_EXCLUSIVE,
+	rv = SCardConnect(hContext, readers[reader_nb], SCARD_SHARE_SHARED,
 		SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, &hCard, &dwActiveProtocol);
 	printf(" Protocol: %ld\n", dwActiveProtocol);
 	PCSC_ERROR(rv, "SCardConnect")
@@ -200,7 +200,7 @@
 
 	/* connect to a card */
 	dwActiveProtocol = -1;
-	rv = SCardConnect(hContext, readers[reader_nb], SCARD_SHARE_EXCLUSIVE,
+	rv = SCardConnect(hContext, readers[reader_nb], SCARD_SHARE_SHARED,
 		SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, &hCard, &dwActiveProtocol);
 	printf(" Protocol: %ld\n", dwActiveProtocol);
 	PCSC_ERROR(rv, "SCardConnect")
@@ -213,7 +213,7 @@
 	PCSC_ERROR(rv, "SCardTransmit")
 
 	/* card reconnect */
-	rv = SCardReconnect(hCard, SCARD_SHARE_EXCLUSIVE,
+	rv = SCardReconnect(hCard, SCARD_SHARE_SHARED,
 		SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, SCARD_LEAVE_CARD,
 		&dwActiveProtocol);
 	PCSC_ERROR(rv, "SCardReconnect")




More information about the Pcsclite-cvs-commit mailing list