Virtual SmartCard Reader driver, couple questions

Posted: 12-13-2008, 02:28 PM
Hello
I'm writing a virtual SmartCard Reader driver for WinXP, the goal is
to pass APDU's through two interfaces : PC/SC <-> SerialPort(COM)

I've read a lot before posting, but i got all confused:

Firstly, a little confused about writing in WDM or WDF and the type of
driver (Function or Filter driver), in the end i chose writing in WDF
(KMDF) and a Function Driver, correct me if i got it wrong.

Secondly, from the WDK documentation/books i understood that i need to
write some kind of DEVICE_EXTENSION structure that is needed for WDF
Framework, AND some kind READER_EXTENSION structure that is used by
SMARTCARD_EXTENSION (typically for the SmartCard driver).
Problem is that i don't know how to write these.. didn't find any
rules and i don't know what is needed for everything to work.

Thirdly, my driver shows in Device Manager list but DOES NOT show in
available readers list in the applications, i've read that the driver
must register with "smclib" but i don't know what lines I need to
write to make it happen. (How to make the reader visible in the
applications that support PS/SC readers?)

Example code in WDK dosen't help any more, so i came here.
Any kind of help is welcome, thanks in advance
Lucas.

Reply With Quote

Responses to "Virtual SmartCard Reader driver, couple questions"

hash3d@gmail.com
Guest
Posts: n/a
 
Virtual SmartCard Reader driver, couple questions
Posted: 12-13-2008, 02:28 PM
Hello
I'm writing a virtual SmartCard Reader driver for WinXP, the goal is
to pass APDU's through two interfaces : PC/SC <-> SerialPort(COM)

I've read a lot before posting, but i got all confused:

Firstly, a little confused about writing in WDM or WDF and the type of
driver (Function or Filter driver), in the end i chose writing in WDF
(KMDF) and a Function Driver, correct me if i got it wrong.

Secondly, from the WDK documentation/books i understood that i need to
write some kind of DEVICE_EXTENSION structure that is needed for WDF
Framework, AND some kind READER_EXTENSION structure that is used by
SMARTCARD_EXTENSION (typically for the SmartCard driver).
Problem is that i don't know how to write these.. didn't find any
rules and i don't know what is needed for everything to work.

Thirdly, my driver shows in Device Manager list but DOES NOT show in
available readers list in the applications, i've read that the driver
must register with "smclib" but i don't know what lines I need to
write to make it happen. (How to make the reader visible in the
applications that support PS/SC readers?)

Example code in WDK dosen't help any more, so i came here.
Any kind of help is welcome, thanks in advance
Lucas.

Reply With Quote
hash3d@gmail.com
Guest
Posts: n/a
 
Virtual SmartCard Reader driver, couple questions
Posted: 12-13-2008, 02:28 PM
Hello
I'm writing a virtual SmartCard Reader driver for WinXP, the goal is
to pass APDU's through two interfaces : PC/SC <-> SerialPort(COM)

I've read a lot before posting, but i got all confused:

Firstly, a little confused about writing in WDM or WDF and the type of
driver (Function or Filter driver), in the end i chose writing in WDF
(KMDF) and a Function Driver, correct me if i got it wrong.

Secondly, from the WDK documentation/books i understood that i need to
write some kind of DEVICE_EXTENSION structure that is needed for WDF
Framework, AND some kind READER_EXTENSION structure that is used by
SMARTCARD_EXTENSION (typically for the SmartCard driver).
Problem is that i don't know how to write these.. didn't find any
rules and i don't know what is needed for everything to work.

Thirdly, my driver shows in Device Manager list but DOES NOT show in
available readers list in the applications, i've read that the driver
must register with "smclib" but i don't know what lines I need to
write to make it happen. (How to make the reader visible in the
applications that support PS/SC readers?)

Example code in WDK dosen't help any more, so i came here.
Any kind of help is welcome, thanks in advance
Lucas.

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Couple of Questions about Virtual PC Stone Mac Virtual PC 7 02-15-2005 11:02 AM
Smartcard reader Massimiliano Castelletto Windows XP Embedded 0 09-29-2004 09:30 AM
Reflex 72 V2 smartcard reader Cadman Windows XP Security & Administration 0 04-16-2004 06:24 PM
Can't install smartcard reader Yvonne Windows XP Hardware 1 02-25-2004 10:50 PM
Digital Pics from SmartCard Reader. Duane Call Windows XP Basics 2 09-27-2003 06:13 PM