2009/3/6 Alon Bar-Lev <alon.bar...@gmail.com>: > WOW! Thanks for finding this! > > Ludovic, can you please confirm this? pcsc-lite diffrence from Windows.
I confirm that SCARD_CTL_CODE() is not the same on Windows. But that should not be a problem since pcsc-lite is supposed to be compatible at the API layer (and not ABI layer). SCARD_CTL_CODE() is not defined in any PC/SC document AFAIK. > It is used by CM_IOCTL_GET_FEATURE_REQUEST, > > So: > #define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400) > Should be actually be: > #define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(850) No. The value 3400 is correct and is defined in PC/SC v2 part 10. Providing a internal-winscard.h is not a good idea. You should use the header file provided by the library you want to use. I already warned of the (potential) problem in [1]. Bye [1] http://www.opensc-project.org/pipermail/opensc-devel/2008-December/011488.html -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel