I'm using pcsc lite version 1.1.1 and there is something i found thats strange.
I have 2 USB slots on my pc, and i'm using Red Hat 7.1 and when i plug in a reader in the second slot pcsc does not recognize it...
 
i'm using the testpcsc.c program that comes with the instalation pack, and I have de drivers installed in /usr/local/pcsc/drivers/ . By the way the readers is scr331 from scm.
here is the code i use... is it wrong?
 
Thx
 
Alexandre Domingues
 
        returnValue = SCardListReaders(hContext, mszGroups, 0, &dwReaders);
       
        if(returnValue != SCARD_S_SUCCESS)
        {
                printf("ListReaders: %s\n",pcsc_stringify_error(returnValue));
                SCardReleaseContext(hContext);
                return returnValue;
        }
       
        mszReaders = (char *) malloc(sizeof(char) * dwReaders);
        returnValue = SCardListReaders(hContext, mszGroups, mszReaders, &dwReaders);
       
        if(returnValue != SCARD_S_SUCCESS)
        {
                printf("ListReaders: %s\n",pcsc_stringify_error(returnValue));
                SCardReleaseContext(hContext);
                return returnValue;
        }
       
        printf("ListReaders: %s\n",pcsc_stringify_error(returnValue));
        return returnValue;
 
this says there are 0 readers on the pc...

Reply via email to