Hi, i am using opensc, pcsc-lite on linux. For card detection i am using *sc_detect_card_presence()* in a task. Between two fuction calls if i remove and insert the card, the funtion returns SC_SLOT_CARD_PRESENT. So i miss the removal. As i debug, i saw that pcsc detects the removal and the following condition in *refresh_slot_attributes()*
*if* (pslot->reader_state.dwEventState & SCARD_STATE_CHANGED) becomes true. But later *refresh_slot_attributes() *removes it from the flags. I could not see a way that SCARD_STATE_CHANGED is set in that function. Am i wrong? How can i detect that removal? Thanks Murat Baran
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
