I have just finished an application for SmartCard. And this application performs well under T=0 protocol, but for T=1 SCardTransmit function returns "invalid parameters ERROR 80100004" . Does the vector have the same format for both protocols ?
My code:
Code: Select all
public void Trasmision()
{
**Byte[] vectorSend = { 0x00, 0xa4, 0x04, 0x00, 0x00, 0x6f, 0x65 };**
UInt32 inT2 = (UInt32)vectorSend.Length;
vectorIn = new Byte[254];
UInt32 inT = (UInt32)vectorIn.Length;
IntPtr PT1 =GetPciT0() ;
this.rTransmit = SCardTransmit(this.hContext, GetPciT1(), vectorSend, inT2, request, vectorIn, inT);
}
cheers,
lutajc