开发者

How can I get smart card Provider ID in windows xp using dot net

开发者 https://www.devze.com 2023-01-06 04:39 出处:网络
I am using c# for developing smart card apps I need to get the smart card provider ID I am trying to use SCardGetProviderId

I am using c# for developing smart card apps I need to get the smart card provider ID I am trying to use SCardGetProviderId

[DllImport("winscard.dll")]
public static extern SCardErr SCardGetProviderId(IntPtr hContext, str开发者_StackOverflow社区ing szCard,ref _GUID guid);

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

but nothing is being returned in the GUID struct I dont know how to get the smart card name??

How can i get the smart card name ???


With my (Omnikey) smart card reader a tool was provided, which shows up in Windows settings. It shows the state of the reader, whether a card is inserted and if so, the ATR, card name and selected communication protocol.

0

精彩评论

暂无评论...
验证码 换一张
取 消