sc_list_readers()

Retrieve a list of all available smart card readers.

Synopsis:

#include <smartcard/sc_smart_card.h>
 
sc_response_code_t sc_list_readers(sc_context_t *context,                 
                                   sc_reader_name_t *readers,                 
                                   size_t *num_readers)

Since:

BlackBerry 10.2.0

Arguments:

context

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

readers

The reader array to be used to write all the available readers to. If NULL, only the number of available smart card readers is retrieved.

num_readers

On input, this value indicates the number of elements in the readers array. On output, the value contains the number of reader names that have been written to the readers array. This value cannot be NULL.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

Returns:

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