How to find the device instance id of a PCSC reader

前端 未结 2 835
余生分开走
余生分开走 2021-01-06 07:27

Having only a handle and context to a PCSC reader using winscard on Windows >= XP, is there some way to get its device instance id or something else that can be

2条回答
  •  一个人的身影
    2021-01-06 07:47

    From my tests, it seams that scard service assigns the name in this order:
    a) SPDRP_FRIENDLYNAME if present
    b) SPDRP_DEVICEDESC

    This way, I was able to match the SCardListReaders() names with the rigth Device/Driver.

    Hope this helps ...

提交回复
热议问题