On 18/03/07, Jason Grant <[EMAIL PROTECTED]> wrote:
I am about to write my first code for the pcsc-lite API, and am wanting
to produce a "monitor" that keeps track of currently available cards
within the system context.
Is there any way for me to be notified when a new reader becomes
available? I would rather not poll SCardListReaders if possible, but
suspect this is my only alternative.
You can have a look at the source code of pcsc_scan from pcsc-tools [1].
It uses SCardGetStatusChange(). This function returns when a reader is
added or removed.
I am not sure this will also work on system not using pcsc-lite (Windows).
Bye,
[1] http://ludovic.rousseau.free.fr/softwares/pcsc-tools/
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle