1

我正在使用 c# 开发智能卡应用程序我需要获取智能卡提供商 ID 我正在尝试使用 SCardGetProviderId

[DllImport("winscard.dll")]
public static extern SCardErr SCardGetProviderId(IntPtr hContext, string szCard,ref _GUID guid);

[StructLayout(LayoutKind.Sequential)]
public struct _GUID
{
        long Data1;
        short Data2;
        short Data3;
        string Data4;
}

但 GUID 结构中没有返回任何内容我不知道如何获取智能卡名称?

我怎样才能得到智能卡的名字???

4

1 回答 1

0

使用我的(Omnikey)智能卡读卡器提供了一个工具,该工具显示在 Windows 设置中。它显示读卡器的状态,是否插入了卡,如果插入,则显示 ATR、卡名称和选择的通信协议。

于 2012-12-18T12:24:42.763 回答