Can I send and receive data simultaneously from a card with SCardTransmit()?
sendBufferLength = 5 + AIDLength + 1;
sendBuffer = (LPBYTE)malloc(sizeof(BYTE)*sendBufferLength);
sendBuffer[i++] = 0x00;
sendBuffer[i++] = 0xA4;
sendBuffer[i++] = 0x04;
sendBuffer[i++] = 0x00;
sendBuffer[i++] = (BYTE)AIDLength;
memcpy(sendBuffer+i, AID, AIDLength);
i+=AIDLength;
sendBuffer[i] = 0x00;
result = SCardTransmit( cardHandle,
SCARD_PCI_T0,
sendBuffer,
sendBufferLength,
NULL,
recvBuffer,
&recvBufferLength
);
if ( SCARD_S_SUCCESS != result) {
errorMessage(result, "SCardTransmit");
return result;
}I get "wrong parameter". What's wrong?
At the moment I have to use a GET RESPONSE command to retrieve data from the card. Is this supported by every card?
Thanks, Karsten _______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle
