Re: Converting Windows Feature Request IOCTL code to the pcsc-lite control code

Ludovic Rousseau <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <CAGstE8A_FRyFONM0gGi=bTTSJUaeSNXqcay5REFLgxK1r2dSyA@mail.gmail.com>
2013/6/26 Anand Renju <[email protected]>:
> Any idea, control code 0x00312004 ( 0x42000801 at the pcsc side) is what
> feature.

0x42000801 is not defined in reader.h
http://anonscm.debian.org/viewvc/pcsclite/trunk/PCSC/src/PCSC/reader.h?view=markup

Your conversion function can be generalized.
control_code = (control_code & 0x3ffc) >> 2;
control_code = SCARD_CTL_CODE(control_code);

The only documented control code I know is:
#define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400)


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

???

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

Maybe it is a proprietary code for your Windows driver and/or application.

Bye

--
 Dr. Ludovic Rousseau
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.