Windows 7 干扰智能卡
我有一个使用 PC/SC API 与智能卡通信的应用程序。在 Windows 7 上,我得到奇怪的结果:从卡返回的数据与某些命令不一致且无效。如果我在组策略中禁用智能卡即插即用服务,则一切正常。有人经历过类似的事情吗?有没有办法让智能卡即插即用服务发挥良好作用?如果不必禁用它就好了......
I have an application that uses the PC/SC API to communicate with smart cards. On Windows 7, I get strange results: the data returned from the cards is inconsistent and invalid with certain commands. If I disable the Smart Card Plug and Play service in group policy then everything works fine. Has anyone experienced anything similar? Is there any way to get the smart card plug and play service to play nice? It would be nice to not have to disable it...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生这种情况是因为您使用的智能卡在 Windows 7 下支持“即插即用”。在这种情况下,Windows 7 将在插入该卡时自动尝试下载并安装该卡的“卡迷你驱动程序”。听起来正在安装的卡迷你驱动程序导致了不一致的行为。
明显的解决方法是使用 Windows 7 下不支持“即插即用”的卡。如果这不可能,您将需要发布有关您所看到的问题的更多详细信息,特别是哪种智能卡您使用的是卡,安装卡迷你驱动程序后哪些命令被破坏?
有关 Windows 7 中智能卡即插即用的 Technet 详细信息,请访问:
http://technet.microsoft.com/en-us/library/dd979547(WS.10).aspx
This is happening because you are using a smart card that supports "plug-and-play" under windows 7. In this situation, Windows 7 will automatically attempt to download and install a "Card Mini Driver" for the card when it is inserted. It sounds like the Card Mini Driver that is getting installed is causing the inconsistent behavior.
The obvious workaround is to use a card that doesn't support "plug-and-play" under windows 7. If this isn't possible, you will need to post additional details about the problems you are seeing, specifically what kind of smart card are you using, and what commands are breaking after the card mini driver is installed?
Technet details on Smart Card Plug and Play in windows 7 can be found here:
http://technet.microsoft.com/en-us/library/dd979547(WS.10).aspx