Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all,
I have smart card reader device.
I have written code for detecting smart card using winscard.dll,it is working fine.
But i don't know how to read and write the smart card.
Is there any function in winscard.dll for reading and writing card??
i got some information that

public static extern int SCardTransmit(
            IntPtr hCard,
            ref SCARD_IO_REQUEST pioSendRequest,
            byte[] SendBuff,
            int SendBuffLen,
            ref SCARD_IO_REQUEST pioRecvRequest,
            IntPtr RecvBuff,    // Copy with marshal.copy to a managed array after call.
            ref int RecvBuffLen);

this function helps to write in card.
but i don't know how to use it
I am new to this..
Please share some information if anybody have.
Thank u in advance..:)
god bless u all..:)
Posted
Comments
KUMAR619 28-Aug-18 7:42am    
Hi,
I am unable to read contents of my Bahrain Smart Card. Can you suggest me some idea to read data including images.

1 solution

this might help you a little-
SCardTransmit function (Windows)[^]
 
Share this answer
 
Comments
MAU787 4-Jan-13 3:47am    
thanx for replying but i want code in dot net

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900