sc_get_card_types_for_reader()

Retrieve a list of card types that match the ATR of the card in the reader associated with the provided context.

Synopsis:

#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)

Since:

BlackBerry 10.2.0

Arguments:

context

The active smart card context. This value cannot be NULL.

cards

An array of card types that can drive the card in the reader. If NULL, only the number of available card types is retrieved.

num_cards

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)

Description:

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.

Returns:

SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus