What error code the program displayed ? That will help in helping u :O
ABY Kouaho <[EMAIL PROTECTED]> wrote:
ABY Kouaho <[EMAIL PROTECTED]> wrote:
> Hi !
> I'm student and I'm working with ACR30 reader on redhat 9.
> My TB100 card from Bull has an ISO7816-4 file structure. And I want to
> communicate with that card with ISO-7816-4 command. But pcsc recognize my
> reader but not my card. I want to know if i really need a particular plugin
> for this card.
>
> could s.o tell me how i can write an iso7816-4 card plugin ?
thanks.
> ********************************************
>
> this is my test programm, but it show me -> CARD NOT INSERTTED
>
> #include
> #include
> #include "winscard.h"
>
> int main(int argc, char **argv)
> {
>
> SCARDHANDLE hCard;
> SCARDCONTEXT hContext;
> SCARD_READERSTATE_A rgReaderStates[1];
> unsigned long dwReaderLen, dwState, ! dwProt, dwAtrLen;
> // unsigned long dwSendLength, dwRecvLength;
> DWORD dwPref;
> DWORD dwReaders;
> char *pcReaders;
> LPSTR mszReaders;
> unsigned char pbAtr[MAX_ATR_SIZE];
> LPSTR mszGroups;
> LONG rv;
> int i, p, iReader;
> int iList[16];
>
> rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL,
> &hContext);
> printf("%s\n", pcsc_stringify_error(rv));
> if (rv == SCARD_S_SUCCESS)
> {
> printf("%s \n"," bon");
> }
> else
> printf("%s \n", "non");
>
> printf("Testing SCardListReaders : ");
> rv = SCardListReaders(hContext,NULL, NULL, &dwReaders);
> mszReaders = (LPSTR) malloc(sizeof(char) * dwReaders);
> rv = SCardListReaders(hContext, mszGroups, mszReaders, &dwReaders);
> if (rv != SCARD_S_SUCCESS)
> {
> SCardReleaseContext(hContext);
> return -1;
> }
>
> rv = SCardConnect(hContext,mszReaders, SCARD_SHARE_SHARED,
> SCARD_PROTOCOL_T0,
> &hCard, &dwPref);
> if (rv != SCARD_S_SUCCESS)
> {
> printf("%s\n", pcsc_stringify_error(rv));
> SCardReleaseContext(hContext);
> return -1;
> }
>
> }
> ------- End of Forwarded Message -------
>
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
_______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle
