Question about smartcard driver writting with WDF...

Hi, all,

I want to write a driver for the USB smartcard device with WDF, but I can not find any information from the WDF documents about smartcard. The smartcard driver sample is based on WDM driver, thus, I want to know whether I can write the driver with WDF or not?

Thanks,

Felix

Download the 6001 server 2008 wdk from the microsoft connect site. It has a framework smart card sample.

D

-----Original Message-----
From: “xxxxx@gmail.com
To: “Windows System Software Devs Interest List”
Sent: 06/15/07 12:19 AM
Subject: [ntdev] Question about smartcard driver writting with WDF…

Hi, all,

I want to write a driver for the USB smartcard device with WDF, but I can not find any information from the WDF documents about smartcard. The smartcard driver sample is based on WDM driver, thus, I want to know whether I can write the driver with WDF or not?

Thanks,

Felix


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Doron Holan wrote:

Download the 6001 server 2008 wdk from the microsoft connect site. It has a framework smart card sample.

Although, in the spirit of full disclosure, you should warn him that if
he builds the driver using that environment, it will only run on Windows
Server 2008. Does the sample use any features that aren’t present in
the KMDF 1.5? That is, could he copy the code and build it with the
6000 WDK?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Yes you can copy the source and build it in the 6000 wdk

D

Sent using my smartphone, apologies forany typos

-----Original Message-----
From: “Tim Roberts”
To: “Windows System Software Devs Interest List”
Sent: 06/15/07 10:19 AM
Subject: Re: [ntdev] Question about smartcard driver writting with WDF…

Doron Holan wrote:
> Download the 6001 server 2008 wdk from the microsoft connect site. It has a framework smart card sample.

Although, in the spirit of full disclosure, you should warn him that if
he builds the driver using that environment, it will only run on Windows
Server 2008. Does the sample use any features that aren’t present in
the KMDF 1.5? That is, could he copy the code and build it with the
6000 WDK?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thank Doron and Tim! I got WDK 6001, copied the smartcard sample code and built it with WDK 6000, but I got lots of errors. Do I need change anything of sample code?

What were the errors?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Wednesday, June 20, 2007 2:31 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Question about smartcard driver writting with WDF…

Thank Doron and Tim! I got WDK 6001, copied the smartcard sample code
and built it with WDK 6000, but I got lots of errors. Do I need change
anything of sample code?


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Those errors are: “c:\winddk\6000\bin\makefile.new(273) : error U1052: file ‘.\sources’ not found…” and lots of “error C2061: syntax error : identifier ‘xxx’”.

xxxxx@gmail.com wrote:

Those errors are: “c:\winddk\6000\bin\makefile.new(273) : error U1052: file ‘.\sources’ not found…” and lots of “error C2061: syntax error : identifier ‘xxx’”.

This suggests that you didn’t copy the whole directory. You need to
copy all of the files, including sources.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Whole directory? I copied the whole smartcard source code directory to another PC and built it with WDK 6000. Do I need other files or directories? Or what else steps should I do?

xxxxx@gmail.com wrote:

Whole directory? I copied the whole smartcard source code directory to another PC and built it with WDK 6000. Do I need other files or directories? Or what else steps should I do?

DID you copy the whole directory? The error message suggests that you
are missing the “sources” file. Perhaps you need to do a “dir /s” and
show us the directory tree.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Yes, I copied whole directory.
Directory tree infromation:

Directory of E:\Project\smartcrd

06/26/2007 05:07 PM

.
06/26/2007 05:07 PM ..
01/01/2002 12:01 AM 18 dirs
01/01/2002 12:07 AM pscr
01/01/2002 12:07 AM inc
1 File(s) 18 bytes

Directory of E:\Project\smartcrd\pscr

06/26/2007 05:07 PM .
06/26/2007 05:07 PM ..
04/17/2007 08:48 PM 252 makefile
04/17/2007 08:48 PM 40,639 pscr.htm
04/17/2007 08:48 PM 3,043 pscr.inf
04/17/2007 08:48 PM 1,779 pscr.rc
04/17/2007 08:48 PM 32,755 pscrcb.c
04/17/2007 08:48 PM 1,200 pscrcb.h
04/17/2007 08:48 PM 28,885 pscrcmd.c
04/17/2007 08:48 PM 2,393 pscrcmd.h
04/17/2007 08:48 PM 3,141 pscrlog.mc
04/17/2007 08:48 PM 51,709 pscrnt.c
04/17/2007 08:48 PM 5,025 pscrnt.h
04/17/2007 08:48 PM 13,464 pscrrdwr.c
04/17/2007 08:48 PM 11,456 pscrrdwr.h
04/17/2007 08:48 PM 645 pscrvers.h
04/17/2007 08:48 PM 610 sources
15 File(s) 196,996 bytes

Directory of E:\Project\smartcrd\inc

06/26/2007 05:07 PM .
06/26/2007 05:07 PM ..
04/17/2007 08:48 PM 2,497 scutil.h
04/17/2007 08:48 PM 746 smcdbg.h
04/17/2007 08:48 PM 29,087 smclib.h
04/17/2007 08:48 PM 1,450 smcnt.h
4 File(s) 33,780 bytes

Total Files Listed:
20 File(s) 230,794 bytes
8 Dir(s) 17,725,751,296 bytes free

---------------------------------------------------------------

xxxxx@gmail.com wrote:

Yes, I copied whole directory.
Directory tree infromation:

But there are no build logs and no object directories here. What
directory were you in when you ran “build”?

And isn’t this directory identical to what is already in the 6000 WDK
(and even the 3790 DDK for that matter)? I thought you were looking for
something that wasn’t present in the WDK.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.