智能卡驱动程序(带 SCardLib 的 KMDF)问题
我正在使用 KMDF 和 SCardlib 开发智能卡驱动程序,我使用 WDK Smarcard 示例作为参考,我认为我正确实现了除 CardPower< 之外的所有回调/code> 和
CardTracking
。 (我的读卡器和卡现在不支持 RESET 命令和插入新卡)
当我尝试运行调用 SCardListReaders()
的测试应用程序时,我收到 SCARD_E_NO_READERS_AVAILABLE
。我使用了像示例中那样进行更改的 INF,并使用 SmartCardReaderGuid 创建了一个设备接口,并将设备类型设置为 FILE_DEVICE_SMARTCARD
。
我不知道我还能做什么,我该如何调试?有什么想法吗?
PS 为什么 SCarLlib 的头文件不在 WDK 的 inc 中而是在示例目录中?
I'm developing Smartcard Driver using KMDF and SCardlib, I used the WDK Smarcard Sample as reference, I think I implemented all of the callbacks correctly except for CardPower
and CardTracking
. (My reader and card don't now support for now RESET commands and insertion of new card)
When I try to run test application that invoke SCardListReaders()
I'm getting SCARD_E_NO_READERS_AVAILABLE
. I used INF like the one of the sample with changes and I Create a Device Interface with SmartCardReaderGuid and I set the device type to FILE_DEVICE_SMARTCARD
.
I don't know what else can I do, how can I debug this? any ideas?
P.S. Why the Header file for SCarLlib are no in the inc of WDK but in the sample directory?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我必须根据 RDF_POWER 回调规范发送一个良好的 ATR 缓冲区。
而且我还必须根据示例实现 RDF_CAR_TRACKING 。
I had to send a good ATR buffer according to the RDF_POWER Callback spec.
and also I had to implemented the RDF_CAR_TRACKING according to the sample.