cardid / WebCard-IE

Smart Card Browser Plugin
http://plugin.cardid.org
MIT License
98 stars 35 forks source link

How to check if the card present in reader when page load? #6

Closed mahrous78 closed 8 years ago

mahrous78 commented 8 years ago

Hey, How to check if the card is already present in the reader when page load?

Thanks

adricasti commented 8 years ago

I would suggest you iterate through WebCard.readers to check the state property., it returns the underlying SCARD_READERSTATE. You can check winscard.h from the Windows SDK for the constant numeric values.