OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: PC/SC

From: moHammed SadiQ (Mohammed.SADIQGEMPLUS.COM)
Date: Wed Sep 03 2003 - 05:52:21 CDT


If you are using GPM8K the attached code must work with GemPC410 & GemPC430.
Make sure that you call SCardConnect with SCARD_SHARE_DIRECT.
Use #define IOCTL_TRANSPARENT SCARD_CTL_CODE(0x800)

By the way, use the with caution, as it is written by an amateur (myself).

Warm Regards,
moHammed SadiQ
[A smartcard evangelist]

----------
Whether you think that you can, or that you can't, you are usually right.
- Henry Ford

>-----Original Message-----
>From: Andrea Rosetti [mailto:andrea.rosettiHSE-SYSTEMS.COM]
>Sent: Wednesday, September 03, 2003 4:03 PM
>To: SmartCardSDKDISCUSS.MICROSOFT.COM
>Subject: PC/SC
>
>
>Hi all,
>
>I'm a beginner in smart card programming with PC/SC.
>
>This is my problem:
>
>I would like to write a C program to access to a memory card
>(syncronous
>card)
>through a gemplus PC410 card reader.
>
>I know (but I don't know if it is the truth) that I can access
>to memory
>card (syncronous card) only with
>SCardControl function, after I have opened the connection by means the
>SCardConnect function.
>
>Could someone send me a C example (or other documentation) where I can
>understand how I can fill the parameters
>of ScardControl function, and specifically the values to insert in
>lpInBuffer and lpOutBuffer
>parameter?
>For example, if I would like write (or read) 10 bytes on the card, how
>can I do?
>I don't know also which are the codes for specifing the kind of
>operation that I want to perform on the card
>(for example, reading, writing and so on).
>
>Thanks in advance
>
>Andrea
>