C#如何调用winscard.dll API
第一次上来发贴问问题?望大侠赐教!!!!
C# :
[DllImport( "winscard.dll ", CharSet = CharSet.Auto)]
public static extern long SCardEstablishContext(int dwScope, IntPtr pvReserved1, IntPtr pvReserved2, UIntPtr phContext);
然后调用SCardEstablishContext(。。。) SCardListReaders(。。。)
等函数
为什么long ret = ReadCard.Reader.SCardEstablishContext(0, IntPtr.Zero, IntPtr.Zero, UIntPtr.Zero);
返回0x80100004 就是参数无法解释的错误代码?
------解决方案--------------------给出SCardEstablishContext 的原型
可能是你的参数定义或给错了