Tech Support > Microsoft Windows > Drivers > Beginer - Where to start?
Beginer - Where to start?
Posted by MdmDriver on October 10th, 2007



Thank you Doron Holan,

I have downloaded the cdc spec, started reading that one, i understand that
kmdf will simply my work and it is a part of WDF the next generation ddk,
some how i would like to develop WDM driver using Winxp ddk, later i would
try it using WDF.

please tell me what would be the first coding step i am suppose to do, like
hello world kind of thing in driver development?

-Bob

"Doron Holan [MSFT]" <doronh@online.microsoft.com> wrote in message
news:%23nmIYViCIHA.1188@TK2MSFTNGP04.phx.gbl...


Posted by Don Burn on October 10th, 2007


The Windows XP DDK is obsolete and NOT SUPPORTED. The current Vista WDK
supports building drivers for Windows 2000 and later OS'es. Using the XP
DDK is a bad idea.

Also, using WDF is a lot easier than WDM, you are buying yourself a lot of
grief for nothing by using WDM. You will have to create a complex state
machine for plug and play / power in WDM in WDF the framework does the hard
stuff for you.

Follow Doron's suggestions, doing anything else is going to add a lot of
time to a project for no reason.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply


"MdmDriver" <MdmDriver@MyMdmDriver.com> wrote in message
news:Op87$SzCIHA.4752@TK2MSFTNGP04.phx.gbl...


Posted by Bill McKenzie on October 10th, 2007


You can use the latest WDK to build straight WDM or WDF drivers. I assume
you want to go the WDM route because you want to know what's going on under
the hood of WDF. I applaud your desire to do your due diligence in
understanding this space.

For a fair example of WDM and a great place to start I would look at the
Toaster sample. The func sample is your typical functional WDM device
driver. That will show you all the PnP and Power code that goes into a WDM
driver plus setting up device interfaces for communication with user-mode
and a lot more. The really nice thing about Toaster is it isn't tied to any
real hardware so you can install it easily and play around with it and
learn.

Good luck. Btw, cross-posting is generally frowned upon around here and
especially in the DTM newsgroup.

Bill M.


"MdmDriver" <MdmDriver@MyMdmDriver.com> wrote in message
news:Op87$SzCIHA.4752@TK2MSFTNGP04.phx.gbl...


Posted by Doron Holan [MSFT] on October 10th, 2007


if you are interested in a modem specific example, fakemdm is a starting
point. you can also use any of the usb samples to see how to communicate
with the usb stack. I also think you should understand the underlying
system below WDF (e.g. WDM), but understanding WDF first will lead you to
an easier entry into the world of WDM. If you start off simple and get
something running, it is much easier to look under the hood once it is
functional then banging your head against the wall for quite a while before
you can get anything working.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Bill McKenzie" <bkmckenzie@sbcglobal.net> wrote in message
news:uGZ6By0CIHA.4584@TK2MSFTNGP03.phx.gbl...

Posted by MdmDriver on October 12th, 2007


Gentlemen

Thank you for all the inputs, its helpful for me.

I understand, that once we make it working using WDF, then we can explore it
by making changes/build and find out whats under the hood. Since this is my
personal project for learning purpose, there is no dead line, i have
already spent sometime on WDM/WinxpDDK and i hope that i will get bit deep
knowledge if i go WDM way. in case if i am not able to make it, there is no
other way and i will go for WDF.

Following your suggestions, i have built/installed toaster/fake-modem and i
am eager to know whats going on there, i think after gainig knowledge about
toaster/fake-modem, i would be able to decide my next step.

I agree i should not have cross-posted in DTM group, so its removed from the
post list.

-Bob