ISCard

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.

    To submit a transaction to a specific card
  1. Create an ISCard interface.
  2. Attach to a smart card by specifying a smart card reader or by using a previously established, valid handle.
  3. Create transaction commands with ISCardCmd, and ISCardISO7816 smart card interfaces.
  4. Use ISCard to submit the transaction commands for processing by the smart card.
  5. Use ISCard to release the smart card.
  6. Release the ISCard interface.

Methods

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.