On 4/21/05, Naveen Mukkelli <[EMAIL PROTECTED]> wrote:
> Currently I'm using the following definition for the SCARD_CTL_CODE macro  
> #define SCARD_CTL_CODE(code) (0x42000000 + (code))  
> #define IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE
> SCARD_CTL_CODE(1) 
.....
> rv = SCardControl(hCard, 0x42000001, bSendBuffer, 1, bRecvBuffer,
> sizeof(bRecvBuffer), &length); (Sample code given in the pc/sc doc). 
....
So why don't you use the given macro in the first place?

First, you have to enable the IFD_EXCHANGE feature in Info.plist under 
ifdDriverOptions key

> My guess is that the control code: 0x42000000 is for CCID drivers and not
> for GemPC410, am I correct? 
42 is the base of all control codes, the actual codes are different.
The whole scheme is ifdhandler dependant and works only together with
CCID ifdhandler and only when you have a specific reader.

> In this case, how I can find out the control code for GemPC410. 
What do you refer to by control codes? What are you tring to do?
  
> 
> Another question is, How I can detect SAM which is present in the Cherry
> keyboard. 
What is SAM ? Secure Authentication Method ? depends on how the
keyboard implements it.

-- 
Martin Paljak
[EMAIL PROTECTED]
http://martin.paljak.pri.ee/
+372.5156495 - phone

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to