How to set smartcard service auto start during reader driver installation?

In MSDN Doc “Windows Vista Smart Card Infrastructure”, it mentioned:

“By default, the service is configured for manual mode. Smart card reader
driver authors must configure the service to start automatically and call a
predefined entry point in winscard.dll that will start the service”

But I didn’t find any guide for how to do that in reader driver? Does it
mean driver need to call winscard.dll function? Which entry point?

Thanks in advance!

HaiKun:

Just use an AddService directive to update the start type of service
SCardSvr in your inf…

Good luck!

XiangHe:

Thank you for your attention!

I found the normal way is to add SCardSvr register-edit section, just update
SCardSvr start type as atuto start.

HKLM, Software\Microsoft\Cryptography\Calais\Readers,

HKLM, System\CurrentControlSet\Services\SCardSvr,Start,0x00010001,2

HaiKun:

Just use an AddService directive to update the start type of service
SCardSvr in your inf…

Good luck!

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer