Re: Writing WDM Drivers by Bill
Bill
Wed May 05 02:59:52 CDT 2004
Personally, the serial port, or parallel port would be the last two devices
on earth I would use to learn a new driver model. Especially WDM. The
driver for serial in particular is not a good one to follow, it is heinously
complex and it does things that are questionable at best, and downright bad
at worst. For example, it uses the system wide cancel spinlock all over the
place, which is a practice long condemned by Microsoft. You would be much
better off trying to write a driver for some simple USB device. USB devices
can be fairly easy to reverse engineer for testing purposes. For instance I
bought a laplink A-to-A USB cable from a local computer shop and I was able
to reverse engineer the device fairly easily and write my own driver for it.
It used one bulk endpoint for reads, and one for writes. I just used the
DDK usbview sample to examine the device. The DDK USB bulk sample provided
an okay starting point for the driver.
--
Bill McKenzie
Software Engineer - Prism 802.11 Wireless Solutions
Conexant Systems, Inc.
"Brian Catlin" <brianc@sannas.org.bad> wrote in message
news:%23AqRbSSMEHA.2068@TK2MSFTNGP11.phx.gbl...
> "SK" <anonymous@discussions.microsoft.com> wrote in message
> news:A2F63680-5A77-439C-B088-1DC789B3038F@microsoft.com...
> >
> > I want to learn WDM by writing a driver for a real device (not as a
System
> > Device Driver). Could anyone suggest
> > a hardware device (for which there is good enough information available)
?
>
> How about the serial or parallel port? The advantage here is that the
source
> for these drivers is in the DDK, so you can gauge your progress and
> understanding
>
> -Brian
>
> Brian Catlin, Sannas Consulting 310-944-9492
> Windows Network, Video, WDM Device Driver Training & Consulting
> See WWW.AZIUS.COM.bad for courses and scheduling
> REMOVE .BAD FROM EMAIL AND WEB ADDRESS
>
>