Tag: pcsc

C# – 使用PCSC-Sharp在智能卡中写入

大家好日子,我想问一下如何用智能卡写字。 我只是依赖于文档中给出的示例,但它只有读取标记。 我按照https://github.com/danm-de/pcsc-sharp/blob/master/Examples/Transmit/Program.cs中的示例进行操作 using System; using PCSC; using PCSC.Iso7816; namespace Transmit { public class Program { public static void Main() { using (var context = new SCardContext()) { context.Establish(SCardScope.System); var readerNames = context.GetReaders(); if (readerNames == null || readerNames.Length < 1) { Console.WriteLine("You need at least one reader in order to run this example."); Console.ReadKey(); […]

智能卡读卡器命名

系统中有两个读卡器(HID OMNIKEY 5321)(每个读卡器执行不同的function) 读者1 – “智能卡读卡器0 ” 读者2 – “智能卡读卡器1 ” 在我的程序中设置了 “智能卡读卡器0 ” – 动作1 “智能卡读卡器1 ” – 行动2 但有时候(没有重启,也许失去联系) 读者1获得名称“智能卡读卡器1 ” 读者2获得名称“智能卡读卡器0 ” 并且该程序不能满足用户的需求。 我在WinScard.dll中使用SCardGetStatusChange(需要读者的名字) 该怎么办? 有没有办法更改阅读器的名称(固件,驱动程序……)? 是否可以使用阅读器的序列号? 我也看了,但没有结果智能卡读卡器命名:当删除任何读卡器时,其余的名称改变 如何构建PCSC智能卡读卡器的“友好名称”?

如何构建PCSC智能卡读卡器“友好名称”?

我使用WinSCard列出所有读者,这给我一个这样的列表: ASK RDR4x7 0 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 0 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 1 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 2 哪个好,但我不知道哪个名字属于哪个读卡器。 这些名字来自哪里? 他们是如何建造的? 我到目前为止所发现的:在注册表中,有一个HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services键。 在此密钥下,您可以找到与读卡器的“服务”(我通过查询WMI注册表找到)匹配的子项。 例如: SCM Microsystems Inc. SCR3320 USB Smart Card Reader读卡器的服务是SCR3XX2K 。 这个子键( SCR3XX2K )有另一个子键Enum ,它有多个有趣的值: Count :DWORD,连接的读者数量 0 :STRING,硬件设备ID 我想这些是附加到’友好名称’的数字,但我无法弄清楚如何构造名称字符串。 […]