Hi All,
I am very new to Windows Device Driver development. Can any body send me
some basic device driver tutorials or links.
Thanks in advance,
kareem
Hi All,
I am very new to Windows Device Driver development. Can any body send me
some basic device driver tutorials or links.
Thanks in advance,
kareem
You should start by looking at the samples in the DDK, reading all the
OSR NT Insider articles, and there are some crappy examples
on codeproject.com.
You should also invest in a couple of books - being new to the kernel
world is nothing like UserLand. Sure, C is the same, but you need
to learn about basic things like paged vs. non-paged memory, IRQL’s, and
thread context. The DDK is not designed or intended for
teaching these things, it’s a technical reference. I would suggest you
browse threw the OSR publications store and buy a couple of
books.
Good Luck,
Matthew
shaikh abdul kareem wrote:
Hi All,
I am very new to Windows Device Driver development. Can any body send
me some basic device driver tutorials or links.Thanks in advance,
kareem
— 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
Consider taking a class, it is very hard to learn this stuff even from a
book. If you cannot take a class, get “Programming the Windows Driver
Model, Second Edition” by Walter Oney and read it thoroughly. Hopefully, by
the time you digested that the OSR book on KMDF will be out, and read that
thoroughly.
OSR has some good samples as do some other sites. Be aware that there are a
number of samples and tutorials on the web, that are terrible and will teach
you the wrong way of doing things. Of course I am biased, but I highly
recomend the following paper:
http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
“shaikh abdul kareem” wrote in message
news:xxxxx@ntdev…
> Hi All,
> I am very new to Windows Device Driver development. Can any body send me
> some basic device driver tutorials or links.
>
> Thanks in advance,
> kareem
>
And that reminds me, time to start buggin’ the OSR folks. When will the
OSR book on KMDF be
released???
Come one, bought two books from you guys, lets make it a third, forth
and so on…
And finally, what’s with all this “Consider taking a class” talk (not
directing this at you Don). I hear
this all the time, has it still not occurred to everyone that a $3,000
class combined with air travel
and lodging is too expensive for most of us? I threw out the idea that
OSR make seminars or portions
avaliable on dvd several months ago; I see sysinternals tried to do this
right before they were bought.
However, I could careless about sysinternals tools (which most of these
vids were about), these
tools were revolutionary years ago (great), now I wish M.R. would move
on…
m.
Don Burn wrote:
, it is very hard to learn this stuff even from a
book. If you cannot take a class, get “Programming the Windows Driver
Model, Second Edition” by Walter Oney and read it thoroughly. Hopefully, by
the time you digested that the OSR book on KMDF will be out, and read that
thoroughly.OSR has some good samples as do some other sites. Be aware that there are a
number of samples and tutorials on the web, that are terrible and will teach
you the wrong way of doing things. Of course I am biased, but I highly
recomend the following paper:
http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx
MM wrote:
And finally, what’s with all this “Consider taking a class” talk (not
directing this at you Don). I hear
this all the time, has it still not occurred to everyone that a $3,000
class combined with air travel
and lodging is too expensive for most of us?
No. That’s the price of 40 hours of burdened labor. By not taking a
class, you will waste VASTLY more than 40 hours trying to pick up all of
the details, tips, hints, and information that will be presented in that
class. Any manager familiar with return-on-investment will clearly
understand which alternative is better.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Hi All,
From where will i get Sample printer driver code developed using UMDF?
Thanks in advance,
kareem
shaikh abdul kareem wrote:
Hi All,
From where will i get Sample printer driver code developed using UMDF?
From nowhere. UMDF is not used for building printer drivers. There are
sample user-mode printer drivers in the DDK, but they do not use UMDF.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Hi Tim,
Thanks for your response.
Actually i have to develop a plotter driver for vista os. So I thought, I
will develop this driver using WDF.
But as per your mail I can not develop printer driver using UMDF, so how can
I start my printer driver for vista os? I am referring MSPLOT sample of DDK
for my plotter driver.
Please give for valuable feed back on how should I proceed.
Thanks in advance,
kareem
On 9/28/06, Tim Roberts wrote:
>
> shaikh abdul kareem wrote:
>
> > Hi All,
> > From where will i get Sample printer driver code developed using UMDF?
>
>
> From nowhere. UMDF is not used for building printer drivers. There are
> sample user-mode printer drivers in the DDK, but they do not use UMDF.
>
> –
> 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
>
I would suggest first you not write anything you don’t have to.
The Microsoft plotter driver is a universal driver, just as UniDrv and the postscript driver are. If your plotter supports HPGL, you just need to create a PCD (text) file describing its capabilities, run the plotgpc tool in the DDK, and get a file (gpc, I think?) that you can install via an INF to run your plotter. I believe there is a plotter minidriver sample in the DDK [the WDK has one]. It is much less work and expense than any other route available to you. However, it lacks the customizability through plugins that the other drivers have.
If that simply isn’t feasible, then you are at least fortunate that the monolithic driver sample is the plotter driver, hence virtually an identical technology.
You will want to compile it as a user-mode renderer [you should always choose that unless you need to run on Windows NT 4]. Since this seems to be a first-time situation, you should review the Display driver information on GDI / engine interfaces in addition to the printer information [not the newer Vista display driver model, nor anything related to DirectX, just the GDI interfaces].
shaikh abdul kareem wrote:
Actually i have to develop a plotter driver for vista os. So I
thought, I will develop this driver using WDF.
But as per your mail I can not develop printer driver using UMDF, so
how can I start my printer driver for vista os? I am referring MSPLOT
sample of DDK for my plotter driver.
Please give for valuable feed back on how should I proceed.
That’s exactly how you proceed: start with the MSPLOT sample in the DDK.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Hi All,
I am developing a printer driver. I am using MSPLOT sample of DDK.
My question is, Do i have to change any code or INF file to make it
install as USB or Network printer?
Thanks in advance
Kareem