SCardStatus using C# PCSC
im getting stucked in SCardStatus and i cannot proceed in the SCardTransmit..
please help me regarding this matter.. i appreciate you guyz for helping me..
[DllImport("winscard.dll")]
public static extern int SCardStatus(int hCard, string ReaderName, ref int RLen, ref int State, ref int Protocol, ref byte[] ATR, ref int ATRLen);
int ATRLen, ReaderLen, Protocol;
byte [] ATR = new byte[33];
short index;
string Temp;
int state;
//ATRLen = 33;
ReaderLen = 10;
Protocol = 0;
dwState = 0;
//perform the Card Status
rcode = ModWinsCard.SCardStatus(this.hCard, rreader, ref ReaderLen, ref State, ref Protocol, ref ATR[0], ref ATRLen);
if (rcode != SCARD_S_SUCCESS)
{
// some code
}
Temp = "";
for (index=0; index <= ATRLen-1; index++)
Temp = Temp + " " + string.Format("{0:X2}", ATR[index]);
// Display value
lstOutput.Items.Add("ATR:" + Temp);
tnx for helping me..

