Retrieve a list of card types that match the ATR of the card in the reader associated with the provided context.
sc_response_code_t sc_get_card_types_for_reader(sc_context_t *context, sc_card_name_t *cards, size_t *num_cards)
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.
Library:libscs (For the qcc command, use the -l scs option to link against this library)
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.
Last modified: 2014-05-14