These service providers provide the basic smart card capabilities. They can be used to access a single smart card capability, or their COM interfaces can be combined to provide several capabilities within a single service provider. These service providers are the building blocks for developing additional functionality to other service providers.
The following tasks can be performed by base service provider interfaces supplied by the Smart Card SDK.
To… | Use… | In DLL… |
---|---|---|
Connect to a smart card, implement transactions, close connections, etc. | ISCard | SCardMgr |
Maintain a command APDU and reply APDU. | ISCardCmd | SCardDat |
Query the smart card database. | ISCardDatabase | SCardMgr |
Locate a smart card or reader. | ISCardLocate | |
Build an ISO7816-4 command APDU. | ISCardISO7816 | SCardSrv |
Wrap an Istream buffer using VB-compatible types. | IByteBuffer | SCardDat |
The following example shows a typical use of these base service provider interfaces. In this example, the ISCard, ISCardISO7816, and ISCardCmd interfaces are used to perform a transaction.
For information on the ADPU command is built within the DLLs, see Building an ISO7816-4 ADPU Command.