05-05-2008 04:58 AM
05-05-2008 05:05 AM
05-05-2008 05:11 AM
Hai GerdW,
Sorry for disturbing you again and again.
The output ATR array becomes 0 since it was initialized. Will it be a problem? As per the configuration of dll, the ATR input should be - pointer to a 32 byte buffer.
Thanks,
Mathan
Note: Learning new things will give experience and that is the starting point of our knowledge and it never ends....
05-05-2008 06:15 AM
05-05-2008 06:35 AM
Dear GerdW,
So you are telling this....
For ATRlen input, i have to give 32 as input and it should be configured as U32 and passed as pointer to value.
For ATR input, i have to use "initialize array" with 32 as dimension size, 0 as input element and output of "init array" was given as input to ATR input of dll. ATR was configured as array with U8 data and passed as array data pointer with minimum length as ATRlength.
Am i correct? any modifications required?
Thanks,
Mathan
05-05-2008 07:06 AM - edited 05-05-2008 07:08 AM
05-05-2008 07:11 AM
Thanks GerdW,
I will try as per ur suggestion and update you the status little later.
Thanks
Mathan
05-05-2008 10:16 AM
On input, supplies the length of the pbAtr buffer. On output, receives the number of bytes in the ATR string (32 bytes maximum). If this buffer length is specified as SCARD_AUTOALLOCATE, then pbAtr is converted to a pointer to a byte pointer, and it receives the address of a block of memory that contains the multiple-string structure.
05-05-2008 11:44 PM
Dear smercurio,
I got understand about datatypes clearly now. Still i need some clarifications.
As you told, how to specify buffer length as scard_autoallocate?
For pbAtr, "init array with 32 as dimension size and zero as element" can be given as input?
Thanks,
Mathan
05-05-2008 11:49 PM
Dear GerdW,
In MSDN,
So pbAtrLen is a "pointer to value" only i think as smercurio told.