April 24th, 2013, 09:27 AM
Sorry for the delay in responding. Yes, the whole issue was because of my sizeof(pbSend) being wrong . Its working perfect when I pass cbSendLength as 5 .
Thanks a lot :) .
April 23rd, 2013, 09:37 AM
Oh, then it shud be :
BYTE pbGetFirstNameEn[] = { 0x00,0xB0,0x00,0x09,0x22}; // Get English First Name
However, this returns the same output. The first 4 bytes are part of the APDU commands...
April 23rd, 2013, 09:14 AM
Yes, it is the same SCardTransmit that MSDN describes.
I had missed out the size of data in the send buffer. I am expecting it to return 32 bytes of first name, so i have replaced it with :
BYTE...
April 23rd, 2013, 07:45 AM
In my actual code, I was checking for iReturn values. Both SCardEstablishContext and SCardConnect have worked.
Thanks for the feedback, I have included code tags.
April 23rd, 2013, 07:43 AM
I have edited my original post with the actual code.
April 23rd, 2013, 06:19 AM
I'm sorry. You can read that whole statement as:
printf ("\npbRecv %02X ",pbRead[i]);
April 23rd, 2013, 05:51 AM
Hi,
I am trying to read data from a smartcard using scardTransmit.
But the data read is always 6D 00 CC CC (Be it for name, expiry date or any other data, always the same.)
This is probably some...