I try to develop a kmdf smart card driver.
Actually my driver is seen as a smart card driver from the device manager.
Now, from an application, I'd like to correctly enumerate this driver with the SCardListReaders function and to connect to it with ScardConnect.
But I don't know the requirements (name format, registry, ...).
By using SCardIntroduceReader and NULL as context in SCardListReader, ok it works. But I'm not sure that I have to use the SCardIntroduceReader function. The documentation says that it's used just to rename a reader... Anyway, the SCardConnect fails after.
In the sample provided by Microsoft (PCMCIA Smart Card driver), this function is not used.
I think the SCardListReader checks this registry key : HKLM\SOFTWARE\Microsoft\Cryptography\Calais\Reader\
Documentation (link below) says that there are two names to define but how and where ? with SmartcardCreateLink function ?https://docs.microsoft.com/en-us/windows-hardware/drivers/smartcard/wdm-device-names-for-smart-card-readers
Thanks in advance for your time.