Retrieve a list of card types that match the ATR of the card in the reader associated with the provided context.
#include <smartcard/sc_smart_card.h>
sc_response_code_t sc_get_card_types_for_reader(sc_context_t *context,
sc_card_name_t *cards,
size_t *num_cards)
BlackBerry 10.2.0
The active smart card context. This value cannot be NULL.
An array of card types that can drive the card in the reader. If NULL, only the number of available card types is retrieved.
On input, this value indicates the number of elements in the cards array. On output, the value indicates the number of card names that have been written to the cards array. This value must not be NULL.
This function is useful in determining which card types can be used to manipulate the card in the reader.
A handle of type SC_HANDLE_READER_SLOT_LOGICAL must be allocated before calling this function; otherwise an error is returned.
SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.