智能卡 USB 驱动器盘符

发布于 2025-01-01 02:57:18 字数 154 浏览 1 评论 0原文

我能够枚举任何计算机上所有插入的智能卡设备。我可以使用 P/Invoke (winscard.dll) 来完成此任务。

我现在想做的是创建一个代表我的智能卡读卡器的虚拟(USB)驱动器号。我不知道这是否可能。

连接智能卡的参考链接:

提前致谢。

I am able to enumerate all plugged smartcard devices on any machine. I can accomplish this by using P/Invoke (winscard.dll).

What I'm trying to do now is to create a virtual (usb) drive letter which represents my smartcard reader. I have no idea if this is possible.

Refence link for connected smartcard:
http://www.pinvoke.net/default.aspx/winscard.scardestablishcontext

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み青杉依旧 2025-01-08 02:57:18

您必须为 Windows 创建一个文件系统插件,请查看此处< /a>.

并不是说您会取得多大成就,因为智能卡文件通常具有两个字节的文件 ID 而不是名称。此外,几乎所有文件都没有 Windows 可以识别的文件。除了 ISO 7816-15 之外,没有真正的方法可以列出目录,并且您可能不想采用这种方式。最后,最重要的东西(例如 PIN 码和密钥)如果是文件,则无法访问。

因此,尽管这是一个有趣的想法,但我不确定它会取得多大成果,而且这将是一项繁重的工作。

You would have to create a file system plugin for Windows, look over here.

Not that you would achieve much, because smart card files typically have two byte file ID's instead of names. Futhermore, almost all files don't have files that Windows would recognize. There is no real way of listing directories other than ISO 7816-15, and you might not want to go that way. Finally, the most important stuff like PIN's and keys cannot be accessed if they are files.

So though it is an interesting idea, I'm not sure it would accomplish much, and it would be a heap of work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文