It was changed to: lErrCode=SCardTransmit(m_hSCard,SCARD_PCI_RAW,send,sendLen,NULL,recv,&recvLen); 1. Or another way to apply to all cases is as below code: if(SCardTransmit(m_hSCard,SCARD_PCI_T0,send,sendLen,N