#include <PCSC/ifdhandler.h>
RESPONSECODE IFDHSetCapabilities(DWORD Lun,
DWORD Tag,
DWORD Length,
PUCHAR Value);
| Lun | IN | Logical Unit Number |
| Tag | IN | Tag of the desired data value |
| Length | INOUT | Length of the desired data value |
| Value | OUT | Value of the desired data |
This function should set the slot/card capabilities for a particular slot/card specified by Lun. Again, if you have only 1 card slot and don't mind loading a new driver for each reader then ignore Lun.
This is used in IFDHandler v1.0 to select the slot to use for the next IFD_* command. This tag is no more used with versions 2.0 and 3.0 of the IFD Handler.
This function is also called when the application uses the PC/SC SCardGetAttrib() function. The list of supported tags is not limited.
| IFD_SUCCESS | Success |
| IFD_ERROR_TAG | Invalid tag given |
| IFD_ERROR_SET_FAILURE | Could not set value |
| IFD_ERROR_VALUE_READ_ONLY | Trying to set read only value |
| IFD_NO_SUCH_DEVICE | The reader is no more present |
Ludovic Rousseau 2008-01-18