Retrieve the current status of a smart card in a smart card reader.
#include <smartcard_spi/SmartCardSession.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardSession::status(sc_reader_name_t **readerNames, unsigned int &numReaderNames, IfdState &state, sc_protocol_t &activeProtocol, AtrString &atrString)=0
BlackBerry 10.3.0
A list of the display names by which the smart card reader is known. The array contains sc_reader_name_t pointers and should be allocated by the caller. The caller should also allocate sc_reader_name_t instances that are provided as array elements. The operation will fill data into the provided sc_reader_name_t instances. If NULL, only the number of elements will be returned.
The number of reader names in the readerNames array. The array should be allocated by the caller and will be populated by this function. On input, this parameter specifies the length of the readerNames array. The number of allocated sc_reader_name_t instances should be no less than numReaderNames. On output, this function populates the number of reader names in the array.
The current smart card state.
The current protocol. The returned value is meaningful if and only if a connection to the smart card is active.
The ATR string from the currently inserted card, if available.
This function retrieves the current status of a smart card in a connected smart card reader. If no connection is currently active, then an error is returned.
If successful, SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.