EasyManua.ls Logo

Gemalto Prox–DU - Interfacing with MIFARE Cards; Mapping MIFARE Commands; Supported MIFARE Card Types; MIFARE and ISO14443-A4 Mode Handling Note

Gemalto Prox–DU
129 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PC/SC Guide
Prox–DU & Prox–SU
www.gemalto.com
DOC119811A Public Use Page 34/129
This function returns different values depending on whether it succeeds or fails:
Success: SCARD_S_SUCCESS.
Failure: An error code. For more information, see Smart Card Return Values.
Remarks:
The SCardIntroduceCardType function is a database management function. For more
information on other database management functions, see Smart Card Database
Management Functions.
To remove a smart card, use SCardForgetCardType.
Examples:
The following example shows how to introduce a card type. The example assumes that
hContext is a valid handle obtained from a previous call to the SCardEstablishContext
function.
GUID MyGuid = { 0xABCDEF00,
0xABCD,
0xABCD,
0xAA, 0xBB, 0xCC, 0xDD,
0xAA, 0xBB, 0xCC, 0xDD };
static const BYTE MyATR[] = { 0xaa, 0xbb, 0xcc, 0x00, 0xdd };
static const BYTE MyATRMask[] = { 0xff, 0xff, 0xff, 0x00, 0xff};
LONG lReturn;
lReturn = SCardIntroduceCardType(hContext,
L"MyCardName",
&MyGuid,
NULL, // No interface array
0, // Interface count = 0
MyATR,
MyATRMask,
sizeof(MyATR));
if ( SCARD_S_SUCCESS != lReturn )
printf("Failed SCardIntroduceCardType\n");

Table of Contents

Other manuals for Gemalto Prox–DU

Related product manuals