I came across kernel mode drivers with very little experience. Here is what I am trying to do:
- Have a user mode application that loads the driver.
- Ask the user mode application to write it down to send them instructions.
- Ask the driver to send the RDMSR instruction to an Intel chip.
- Bring the results back to the user mode application.
I read this article that describes the various ways that this behavior can be performed (buffered I / O, direct I / O, or NI).
My problem is ... the article contains code that represents a way to structure the WDM driver, and I expected that I could create a WDM KMDF project template using the Windows Kit driver, but when I downloaded the Windows driver kit (WDK), the only driver KMDF driver was a WDF driver. There is an article on MSDN that describes the differences between the two . This is strange to me. I expected to get a template out of the box, which I could change to work, as in the article I linked, but I do not see this. Why is there no template for the WDM KMDF driver?
Just an added note, you can easily tell the type of driver based on how the device was created (IoCreateDevice implies WDM, whereas WdfDeviceCreate implies WDF).
c visual-c ++ wdf wdk kmdf
Alexandru
source share