Implements a Smart Card connection. More...
#include <SmartCardConnection.h>
Public Member Functions | |
| virtual | ~CSmartCardConnection () |
| long | beginTransaction () |
| Begins a transaction with the smart card. | |
| long | endTransaction () |
| Ends a transaction with the smart card. | |
| LPCSTR | getReaderName () |
| Gets the name of the connected reader. | |
| long | send (IN const CCommandAPDU &apdu, CResponseAPDU *pResponse) |
| Sends an APDU. | |
| long | send (IN const BYTE *pbtApdu, int nApduLen, CResponseAPDU *pResponse) |
| Sends an APDU. | |
| const ATR & | getATR () const |
| Gets the smart card's ATR. | |
| DWORD | getProtocol () |
| Gets the smart card's protocol. | |
| bool | isSmartCardPresent () |
| Checks for card presence. | |
Static Protected Member Functions | |
| static CSmartCardConnection * | openConnection (SCARDCONTEXT hContext, LPCSTR lpszReaderName, DWORD dwSharedMode, DWORD dwProtocol) |
| Opens a connection. | |
| static long | closeConnection (IN CSmartCardConnection *connection, bool bReset=false) |
| Cloese a connection. | |
Implements a Smart Card connection.
| virtual USCAPI::CSmartCardConnection::~CSmartCardConnection | ( | ) | [virtual] |
| long USCAPI::CSmartCardConnection::beginTransaction | ( | ) |
Begins a transaction with the smart card.
| static long USCAPI::CSmartCardConnection::closeConnection | ( | IN CSmartCardConnection * | connection, | |
| bool | bReset = false | |||
| ) | [static, protected] |
Cloese a connection.
| long USCAPI::CSmartCardConnection::endTransaction | ( | ) |
Ends a transaction with the smart card.
| DWORD USCAPI::CSmartCardConnection::getProtocol | ( | ) |
Gets the smart card's protocol.
| LPCSTR USCAPI::CSmartCardConnection::getReaderName | ( | ) |
Gets the name of the connected reader.
| bool USCAPI::CSmartCardConnection::isSmartCardPresent | ( | ) |
Checks for card presence.
| static CSmartCardConnection* USCAPI::CSmartCardConnection::openConnection | ( | SCARDCONTEXT | hContext, | |
| LPCSTR | lpszReaderName, | |||
| DWORD | dwSharedMode, | |||
| DWORD | dwProtocol | |||
| ) | [static, protected] |
Opens a connection.
| long USCAPI::CSmartCardConnection::send | ( | IN const BYTE * | pbtApdu, | |
| int | nApduLen, | |||
| CResponseAPDU * | pResponse | |||
| ) |
Sends an APDU.
| long USCAPI::CSmartCardConnection::send | ( | IN const CCommandAPDU & | apdu, | |
| CResponseAPDU * | pResponse | |||
| ) |
Sends an APDU.
1.6.3