Classic Electronics Smart 4F Especificaciones Pagina 48

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 59
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 47
Smart Cards Lab COMPGA12 University College London
bSend[i]=ReadHex(Text[j]);
j++;
};
i++;
};
};
return i;
};
int PCSCExample(int readernb)
{
SCARDCONTEXT hContext; LONG lReturn,lReturn2;
// Establish the context.
lReturn = SCardEstablishContext(SCARD_SCOPE_USER,NULL,NULL,&hContext);
if ( SCARD_S_SUCCESS != lReturn )
PCSC_ERROR(lReturn, "SCardEstablishContext")
else
{
// Use the context as needed.
SCARDHANDLE hCardHandle;
DWORD dwAP;
//now list the readers
LPTSTR pmszReaders = NULL;//16-bit UNICODE characters
LPCTSTR AReader = NULL; LPCTSTR LastReader = NULL;
LPCTSTR MyReader = NULL;
//char WantReader2[] = "ACS ACR122";
DWORD cch = SCARD_AUTOALLOCATE;
SCARD_IO_REQUEST
*
pioSendPci=NULL;
SCARD_IO_REQUEST
*
pioRecvPci=NULL;
lReturn = SCardListReaders(hContext,NULL,(LPTSTR)&pmszReaders,&cch );
if ( lReturn == SCARD_S_SUCCESS )
{
int nbReaders=0;
AReader = pmszReaders;
while ( ’\0’ !=
*
AReader )
{
LastReader=AReader;
nbReaders++;
c
Nicolas T. Courtois 2009-10
Vista de pagina 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 58 59

Comentarios a estos manuales

Sin comentarios