Subsections

IFDHCreateChannel

Synopsis:

#include <PCSC/ifdhandler.h>

RESPONSECODE IFDHCreateChannel(DWORD Lun,
    DWORD Channel);

Parameters:

Lun IN Logical Unit Number
Channel IN Channel ID

Description:

This function is required to open a communications channel to the port listed by Channel. For example, the first serial reader on COM1 would link to /dev/pcsc/1 which would be a symbolic link to /dev/ttyS0 on some machines This is used to help with inter-machine independence.

On machines with no /dev directory the driver writer may choose to map their Channel to whatever they feel is appropriate.

Once the channel is opened the reader must be in a state in which it is possible to query IFDHICCPresence() for card status.

Returns:

IFD_SUCCESS Successful
IFD_COMMUNICATION_ERROR Error has occurred
IFD_NO_SUCH_DEVICE The reader is no more present

Ludovic Rousseau 2008-01-18