The ISCard interface lets you open and manage a connection to a smart card. Each connection to a card requires a single, corresponding instance of the ISCard interface.
The smart card resource manager must be available whenever an instance of ISCard is created. If this service is unavailable, creation of the interface will fail.
The following example shows a typical use of the ISCard interface. The ISCard interface is used to connect to the smart card, submit a transaction, and release the smart card.
Call… | To… |
---|---|
get_Atr | Retrieve the ATR string of the smart card. |
get_CardHandle | Retrieve the handle for the connected smart card. |
get_Context | Retrieve the current resource manager context handle. |
get_Protocol | Retrieve the identifier of the protocol currently in use on the smart card. |
get_Status | Retrieve the current state that the smart card is in. |
AttachByHandle | Attach an object to an open and configured smart card handle. |
AttachByReader | Open the smart card in the named reader. |
Detach | Close the open connection to the smart card. |
LockSCard | Claim exclusive access to the smart card. |
ReAttach | Reset and reinitialize the smart card. |
Transaction | Execute a write and read operation on the smart card command (APDU) object. |
UnlockScard | Release exclusive access to the smart card. |