[Pcsclite-cvs-commit] SCardGetStatusChange only works the first time using it

Toon Claes toon at tonotdo.com
Fri Jun 12 11:36:58 UTC 2009


Hello,

I've been using PCSC-Lite to access my ACR38 cardreader. I've been working
with version 1.5.1 and that worked perfect. Now I have upgraded PCSC-Lite
to version 1.5.3, and the function call "SCardGetStatusChange" does not
work like it did before. See this example code:
LONG WaitForCard() {
   SCARD_READERSTATE             _readerState;
   _readerState.szReader         = "Reader X";
   _readerState.dwCurrentState   = SCARD_STATE_EMPTY;
   return SCardGetStatusChange(m_Context, INFINITE, &_readerState, 1);
}

I use this code to wait for a card to be inserted. With version 1.5.1 this
worked like a charm, using 1.5.3 this works only the first time (after
starting pcscd).

Am I doing something wrong? Or is something else incorrect?

Thanks in advance,
Toon Claes



More information about the Pcsclite-cvs-commit mailing list