On Apr 13, 2010, at 22:51 , Anderson Goulart wrote:
> I am trying to use pcsclite API just to check if the card is inserted on the 
> reader or not, based on the API reference and some example codes at muscle 
> site:

...
> 
> 
>    SCardConnect( hContext, lpcReaders, SCARD_SHARE_EXCLUSIVE,
>         SCARD_PROTOCOL_T0,
>         &hCard, &dwActive );

...
>    SCardStatus( hCard, lpcReaders, &dwReaders, &dwState, &dwProtocol, 
>         Atr, &dwAtrLen );


You might want to use SCardGetStatusChange  [1] which does not require an open 
connection to the card in the first place (a card handle)

[1] http://pcsclite.alioth.debian.org/pcsc-lite/node20.html
-- 
Martin Paljak
http://martin.paljak.pri.ee
+3725156495


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to