NAME
DesfireAPI :: PC/SC functions
COPYRIGHT
(c) 2009 SpringCard - www.springcard.com
DESCRIPTION
DESFIRE communication over PC/SC API.
NAME
[PCSC]AttachLibrary
DESCRIPTION
Associates the Desfire DLL with a smartcard connected in PC/SC. Call this function immediately after SCardConnect to be able to use pcsc_desfire.dll functions.
SYNOPSIS
[[sprox_desfire.dll]] Not applicable. [[sprox_desfire_ex.dll]] Not applicable. See [Legacy]AttachLibrary [[pcsc_desfire.dll]] LONG SCardDesfire_AttachLibrary (SCARDHANDLE hCard);
INPUTS
SCARDHANDLE hCard : handle of the card
RETURNS
SCARD_S_SUCCESS : library attached Other code if internal or communication error has occured.
SEE ALSO
[PCSC]DetachLibrary
NAME
[PCSC]DetachLibrary
DESCRIPTION
Remove the attachement between the Desfire DLL and a PC/SC smartcard. Call this function immediately before SCardDisconnect.
SYNOPSIS
[[sprox_desfire.dll]] Not applicable. [[sprox_desfire_ex.dll]] Not applicable. See [Legacy]DetachLibrary. [[pcsc_desfire.dll]] LONG SCardDesfire_DetachLibrary (SCARDHANDLE hCard);
INPUTS
SCARDHANDLE hCard : handle of the card
RETURNS
SCARD_S_SUCCESS : library detached SCARD_E_INVALID_HANDLE : invalid handle
SEE ALSO
[PCSC]AttachLibrary
NAME
[PCSC]IsoWrapping
DESCRIPTION
Select the wrapping mode of Desfire legacy commands into ISO 7816-4 APDUs.
SYNOPSIS
[[sprox_desfire.dll]] Not applicable. See [Legacy]IsoWrapping. [[sprox_desfire_ex.dll]] Not applicable. See [Legacy]IsoWrapping. [[pcsc_desfire.dll]] LONG SCardDesfire_IsoWrapping (SCARDHANDLE hCard, BYTE mode);
INPUTS
BYTE mode : ISO wrapping mode (DF_ISO_WRAPPING_CARD or DF_ISO_WRAPPING_READER)
RETURNS
DF_OPERATION_OK : ISO wrapping mode set DFCARD_LIB_CALL_ERROR : ISO wrapping mode not set, mode not available
NOTES
DF_ISO_WRAPPING_CARD uses the card's wrapping method (see chapter 3.13 of datasheet of mifare DesFire MF3ICD40 for more information). This is the default setting. DF_ISO_WRAPPING_READER uses the reader's wrapping method (for early releases of Desfire cards that doesn't offer the card's wrapping method). This works only with SpringCard CSB6 Family products.