Il giorno 03/lug/08, alle ore 09:22, Ludovic Rousseau ha scritto: > Hello Alon, > > I do not understand your patch. In which cases SCardListReaders() is > returning ERROR_INVALID_HANDLE? > This error code is not a PC/SC error code. I checked with pcsc-lite > and SCardListReaders(-1, ...) correctly returns SCARD_E_INVALID_HANDLE
I've had the same problem with SCardEstablishContext (and prepared a similar patch, checking for either SCARD_E_INVALID_HANDLE or ERROR_INVALID_HANDLE). In Windows XP, you get the standard (correct?) behaviour; in Windows Vista you get ERROR_INVALID_HANDLE. Microsoft forums show lots of unsuccessful attempts at digesting this issue: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1850074&SiteID=1 http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=1880083&SiteID=1 Bye, -- Emanuele _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel