Discussion:
WDF or WDM
(too old to reply)
mpefareo
2010-02-09 12:32:01 UTC
Permalink
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?
Don Burn
2010-02-09 13:13:53 UTC
Permalink
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
Post by mpefareo
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
Maxim S. Shatskih
2010-02-09 14:18:54 UTC
Permalink
Post by mpefareo
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
***@storagecraft.com
http://www.storagecraft.com
mpefareo
2010-02-10 10:04:01 UTC
Permalink
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?
Maxim S. Shatskih
2010-02-10 10:16:25 UTC
Permalink
Post by mpefareo
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.
Post by mpefareo
2.The other question is it posible to write drivers for Windows 7 using WDM?
Yes. KMDF+WDF driver is actually a WDM driver.
Post by mpefareo
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.
Post by mpefareo
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
***@storagecraft.com
http://www.storagecraft.com
eagersh
2010-02-10 16:23:58 UTC
Permalink
Post by mpefareo
4. Is there anything in WDK to use WDM by anything I mean docs sample files
and so on?
The latest WDK contains a good sample of PCI express DMA transfer,
which you could use. The sample is located under \src\general\PLX9X5
and was written by using WDF. The earliest versions of WDK, I don't
remember which one, have the same sample written on WDM.
In general, WDF is good stuff and you should use it as much as
possible. Before doing design you should check if WDF supports a
particular Windows kernel technology which you want to use. But for
each next version of WDK, WDF supports more type of drivers than in
previous one.

Igor Sharovar
mpefareo
2010-02-11 15:45:01 UTC
Permalink
Thank you for your answers, they are very helpfull!!!
osman toker
2011-02-01 21:29:44 UTC
Permalink
hi , i want to add some questions to this title.
i have a sample of driver for a pci-e device. the codes have writeen with WDM for XP, i must modify them for windows 7 and i want to use WDF. Actually i dont know where i change. Briefly what is the difference of WDM and WDF about codes?
Hello. I want to learn writing device driver for windows. And I am a bit
confused which way to go WDM or WDF? Can I write PCI express DMA transfer
with WDF framework, for example?
Post by Don Burn
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
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4850 (20100209) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
transfer=20
Yes.
Modern days, you should understand both but use KDMF for actual coding.
--=20
Maxim S. Shatskih
Windows DDK MVP
http://www.storagecraft.com
Post by mpefareo
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?
Some subtle things. But it is possible to escape the bounds of WDF and =
go pure WDM.
using WDM?
Yes. KMDF+WDF driver is actually a WDM driver.
is: Do=20
level=20
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.
files=20
Surely.
--=20
Maxim S. Shatskih
Windows DDK MVP
http://www.storagecraft.com
Post by eagersh
es
The latest WDK contains a good sample of PCI express DMA transfer,
which you could use. The sample is located under \src\general\PLX9X5
and was written by using WDF. The earliest versions of WDK, I do not
remember which one, have the same sample written on WDM.
In general, WDF is good stuff and you should use it as much as
possible. Before doing design you should check if WDF supports a
particular Windows kernel technology which you want to use. But for
each next version of WDK, WDF supports more type of drivers than in
previous one.
Igor Sharovar
Post by mpefareo
Thank you for your answers, they are very helpfull!!!
Submitted via EggHeadCafe
Creating Google Motion Charts from Excel data
http://www.eggheadcafe.com/tutorials/aspnet/86599bca-edda-4204-af15-7a1cf901a071/creating-google-motion-charts-from-excel-data.aspx
Loading...