Smartcard reader naming

无人久伴 提交于 2019-12-03 22:15:59
Yuriy

found a solution Getting PCSC reader serial number with WinSCard

serial number reader

...
SCardConnect(hContext, readerName, SCARD_SHARE_DIRECT, SCARD_PROTOCOL_UNDEFINED, ref hCard, ref protocol);
SCardGetAttrib(hCard, SCARD_ATTR_VENDOR_IFD_SERIAL_NO, receiveBuffer, ref receivebufferLen);
...

Maybe you should focus on the smartcard inserted in / connected to the reader rather than the reader itself and use card specific information (i.e. serial number or label) to choose the correct reader.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!