Dirk Van Haerenborgh wrote: > The first occurrence of SCardGetStatusChange immediately returns an > eventstate with value 131090. > Thereafter, the second time SCardGetStatusChange gets called, the > eventstate return value is 393234. This is immediately as well. > Then, the third occurrence of ScardGetStatusChange blocks until I put > a card on the reader (which I would expect it to do). When I put a > card on the reader, the eventstate value is 458687. > > These are all quite large values, is this normal? Looking at this > website: > http://pyscard.sourceforge.net/epydoc/smartcard.scard.scard-module.html, > I get the feeling something is awfully wrong, but I can't figure out > what I am doing wrong. > > Does anyone have any ideas about this?
Yes, this behavior is correct. SCardGetStatusChange also adds an event counter in the upper word of dwEventState for each reader. That's why your values are increasing every time an event occurs. Check the code at approx. line 1973 in pcsc-lite/winscard_clnt.c below the comment "Now we check all the Reader States". - reto _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
