[Pcsclite-cvs-commit] r4418 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Oct 2 13:58:51 UTC 2009


Author: rousseau
Date: Fri Oct  2 13:58:50 2009
New Revision: 4418

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4418
Log:
add Doxygen section: Known differences with Microsoft Windows WinSCard
implementation

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=4418&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Fri Oct  2 13:58:50 2009
@@ -16,6 +16,33 @@
  * forwarding requests over message queues.
  *
  * Here is exposed the API for client applications.
+ *
+ * @attention
+ * Known differences with Microsoft Windows WinSCard implementation:
+ *
+ * -# SCardStatus()
+ *    @par
+ *    SCardStatus() returns a bit field on pcsc-lite but a enumeration on
+ *    Windows.
+ *    @par
+ *    This difference may be resolved in a future version of pcsc-lite.
+ *    The bit-fields would then only contain one bit set.
+ *    @par
+ *    You can have a @b portable code using:
+ *    @code
+ *    if (dwState & SCARD_PRESENT)
+ *    {
+ *      // card is present 
+ *    }
+ *    @endcode
+ * -# \ref SCARD_E_UNSUPPORTED_FEATURE
+ *    @par
+ *    Windows may return ERROR_NOT_SUPPORTED instead of
+ *    SCARD_E_UNSUPPORTED_FEATURE
+ *    @par
+ *    This difference will not be corrected. pcsc-lite only uses
+ *    SCARD_E_* error codes.
+ *
  */
 
 #include "config.h"




More information about the Pcsclite-cvs-commit mailing list