PC/SC Winscard SCardTransmit error 0x00000016 returned

Use PC/SC Winscard SCardTransmit function, it returns error 0x00000016 when using Contactless card reader, found the 2nd parameter of SCardTransmit( ) was wrong. If I replace the 2nd parameter from SCARD_PCI_T0 to SCARD_PCI_RAW under PC/SC contactless mode, the problem was resolved. The change was as below, lErrCode = SCardTransmit(m_hSCard, SCARD_PCI_T0, send, sendLen, NULL, recv, &recvLen); […]