Thanks Ludovic.

Any idea, control code 0x00312004 ( 0x42000801 at the pcsc side) is what
feature.

0x00313520 is equivalent to 0x42000801 ( 3400 - GET_FEATURE_REQUEST)

IFDHControl() gives ''Card not transacted'' error for 0x00312004 (
0x42000801)

Thanks,
-Renju


On Sat, Jun 22, 2013 at 4:44 PM, Ludovic Rousseau <
[email protected]> wrote:

> 2013/6/21 Anand Renju <[email protected]>:
> > Hi,
>
> Hello,
>
> > In Windows we get 0x31520 for CM_IOCTL_GET_FEATURE_REQUEST control code
> and
> > it is not same as in Linux pcsc-lite. In Linux we expect the 3400 decimal
> > value or 0xd48.
> >
> > Do we have any macros as part of pcsc-lite dev package to convert Windows
> > control code to the pcsc-lite version
>
> pcsc-lite do not manage Windows values.
> The symbolic names often gives the same values but not always.
>
> CM_IOCTL_GET_FEATURE_REQUEST is defined in PCSC/reader.h
>
> > or do we need to convert this like rdesktop does
> >
> > control_code = (control_code & 0x3ffc) >> 2;
> >
> > control_code = SCARD_CTL_CODE(control_code);
>
> Yes. Something like that.
>
> Bye
>
> --
>  Dr. Ludovic Rousseau
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
>
_______________________________________________
Muscle mailing list
[email protected]
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com

Reply via email to