I'm writing a Windows service that must handle Smart card readers.
Very often, when I try to connect to an inserted Smart card, SCardConnect()
fails with SCARD_E_SHARING_VIOLATION
which basically means:
The smart card cannot be accessed because of other outstanding connections.
Fair enough.
I guess that a least one other process tries to access the Smart at the same time. But is there a way to determine which process(es) it is ?