From: mpefareo on
Hello. I want to learn writing device driver for windows. And I'm a bit
confused which way to go WDM or WDF? Can I write PCI express DMA transfer
with WDF framework, for example?
From: Don Burn on
Yes you can write PCI express DMA with WDF. In general you should use WDF
these days. WDM means you have to develop code for dealing with all the
nuances of plug and play plus power and this is not easy. KMDF eliminates
all of these. So if the model currently will work in WDM if should be moved
to WDF.

Start by learning WDF this will give you a working environment. Then as you
need special things you can dive into WDM calls.


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



"mpefareo" <mpefareo(a)discussions.microsoft.com> wrote in message
news:467D6ED1-5C7B-4B80-A133-808637A32D27(a)microsoft.com...
> Hello. I want to learn writing device driver for windows. And I'm a bit
> confused which way to go WDM or WDF? Can I write PCI express DMA transfer
> with WDF framework, for example?
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4850 (20100209) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4850 (20100209) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




From: Maxim S. Shatskih on
> confused which way to go WDM or WDF? Can I write PCI express DMA transfer
> with WDF framework, for example?

Yes.

Modern days, you should understand both but use KDMF for actual coding.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: mpefareo on
Thank you for your answers. I'm sorry I have got some other questions:

1.Is there anything WDF can not do that WDM can do?

2.The other question is it posible to write drivers for Windows 7 using WDM?

3.What a are your impreassions about WDF and WDM, what I mean by that is: Do
you think in the future Microsoft will only support WDF and the lower level
will probably change(WDM will die in the future).

4. Is there anything in WDK to use WDM by anything I mean docs sample files
and so on?

From: Maxim S. Shatskih on
> 1.Is there anything WDF can not do that WDM can do?

Some subtle things. But it is possible to escape the bounds of WDF and go pure WDM.

> 2.The other question is it posible to write drivers for Windows 7 using WDM?

Yes. KMDF+WDF driver is actually a WDM driver.

> 3.What a are your impreassions about WDF and WDM, what I mean by that is: Do
> you think in the future Microsoft will only support WDF and the lower level
> will probably change(WDM will die in the future).

Don't know. So far, I do not aware of any plans of this.

But note that old user32 windowing API is still here, and MFC have not replaced it.

> 4. Is there anything in WDK to use WDM by anything I mean docs sample files
> and so on?

Surely.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com