Subsections

IFDHPowerICC

Synopsis:

#include <PCSC/ifdhandler.h>

RESPONSECODE IFDHPowerICC(DWORD Lun,
    DWORD Action,
    PUCHAR Atr,
    PDWORD AtrLength);

Parameters:

Lun IN Logical Unit Number
Action IN Action to be taken
Atr OUT Answer to Reset (ATR) value of the inserted card
AtrLength INOUT Length of the ATR

Description:

This function controls the power and reset signals of the smart card reader at the particular reader/slot specified by Lun.

Notes:

Memory cards without an ATR should return IFD_SUCCESS on reset but the Atr should be zeroed and the length should be zero Reset errors should return zero for the AtrLength and return IFD_ERROR_POWER_ACTION.

Returns:

IFD_SUCCESS Success
IFD_ERROR_POWER_ACTION Error powering/resetting card
IFD_COMMUNICATION_ERROR An error has occurred
IFD_NOT_SUPPORTED Action not supported
IFD_NO_SUCH_DEVICE The reader is no more present

Ludovic Rousseau 2008-01-18