本文介绍了C#中的智能卡acr38与计算机之间的简单连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我建立智能卡acr38智能卡读卡器与计算机之间的连接吗?
can any one help me in establishing the connections between smartcard acr38 smartcard reader and towards the computer
推荐答案
private void btnConnect_Click(object sender, System.EventArgs e)
{
// Connect to the reader using hContext handle and obtain hCard handle
retcode = ModWinsCard64.SCardConnect(hContext, cbReader.Text, ModWinsCard64.SCARD_SHARE_EXCLUSIVE, 0 | 1, ref hCard, ref ActiveProtocol);
if (retcode != ModWinsCard64.SCARD_S_SUCCESS)
{
lstOutput.Items.Add ("Connection Error");
}
else
{
lstOutput.Items.Add ("Connection OK");
rreader = cbReader.Text;
}
lstOutput.SelectedIndex = lstOutput.Items.Count-1;
btnFormat.Enabled = true;
}
我尝试了这段代码,但没有结果
i tried this code but there is no result
这篇关于C#中的智能卡acr38与计算机之间的简单连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!