解决方案 »

  1.   

    谢谢,不过好像也不行啊
    我的代码是这样
    [DllImport("CFDll.dll", SetLastError = true, CharSet = CharSet.Auto)]
            static unsafe extern int CFISO14443_3AAuthentication2(UInt32 wDevID, Byte bMode, Byte bBlock, Byte[] pKey);原函数是这样
    int CFISO14443_3AAuthentication2(WORD wDevID, BYTE bMode, BYTE 
    bBlock, BYTE *pKey); wDevID   -   设备标识 
    bMode   -  密钥属性, 0x60 ='A', 0x61 = 'B' 
    bBlock   -   绝对块号 
    pKey   -  6 字节密钥 返回的就是不正确的值
      

  2.   

    static unsafe extern int CFISO14443_3AAuthentication2(ushort wDevID, Byte bMode, Byte bBlock, Byte[] pKey);