Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
[Muscle] Context handles and pcscd?
Date: Mon Jul 03 2006 - 08:37:22 CDT
I'm using pcsclite-1.3.0 and ccid-1.0.0.
I've got a thread that calls SCardEstablishContext(), then monitors card
events by calling SCardListReaders() and SCardGetStatusChange().
This will works fine, until pcscd is killed. After that,
SCardListReaders() returns an empty list and SCardGetStatusChange()
returns SCARD_S_SUCCESS (since it is acting on a zero-length list of
If pcscd is restarted, SCardListReaders() and SCardGetStatusChange()
still act as before: zero readers are returned, and both functions
I assume that the original context needs to be released, and a new
context obtained via a call to SCardEstablishContext().
Is there an API call to determine that the current context handle is no
longer valid (for pcsclite, this would mean detecting that the
underlying PC/SC daemon has been killed) so that SCardEstablishContext()
can be called again?
Muscle mailing list