为什么会出现在Windows驱动程序工具包没有WDM内核模式驱动程序模板? [英] Why is there no WDM kernel-mode driver template in Windows Driver Kit?

查看:777
本文介绍了为什么会出现在Windows驱动程序工具包没有WDM内核模式驱动程序模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到内核模式驱动程序附带很少的经验。下面是我想要做的:

I came across kernel-mode drivers with very little experience. Here's what I am trying to do:


  • 有加载驱动程序用户模式应用程序。

  • 有用户模式应用程序写它,才能向其发出指令。

  • 有司机送RDMSR指令英特尔芯片。

  • 返回结果返回给用户模式应用程序。

我读过本文描述中,你可以做到这一点的行为方式不同(缓冲I / O,直接I / O,或两者都不是)。

I've read this article that describes the different ways in which you can accomplish this behavior (Buffered I/O, Direct I/O, or Neither).

我的问题是这样的......的文章有code,它重新presents你会构建一个 WDM 驱动程序的方式,我期待能够创建一个WDM使用Windows驱动程序工具包KMDF项目模板,但是当我下载的驱动程序开发工具包(WDK),唯一的KMDF驱动程序模板是一个 WDF 的驱动程序。 MSDN描述有差异的文章两者之间。这是一种怪我。我期待得到一个模板出来,我可以修改之类的文章,我挂在工作的方块,但我没有看到它。为什么会出现一个WDM驱动程序KMDF没有模板?

My problem is this...the article has code that represents the way you would structure a WDM driver, and I was expecting to be able to create a WDM KMDF project template using the Windows Driver Kit, but when I downloaded the Windows Driver Kit (WDK), the only KMDF driver template was for a WDF driver. MSDN has an article describing the differences between the two. This is kind of strange to me. I was expecting to get a template out of the box that I could modify to work like in the article I've linked, but I don't see it. Why is there no template for a WDM KMDF driver?

只是一个补充说明,你可以很容易地告诉司机的基础上的办法它所创建的设备(IoCreateDevice函数意味着WDM,而WdfDeviceCreate意味着WDF)。

Just an added note, you can quite easily tell the type of the driver based on the way it creates the device (IoCreateDevice implies WDM, whereas WdfDeviceCreate implies WDF).

推荐答案

有很多的问题不一致。首先, KMDF WDF 的一个子集(和它的唯一相关的 WDF 部分),所以两者之间没有矛盾。每一个内核驱动程序本质上是一个 WDM 驱动程序。 KMDF WDM KMDF 驱动程序框架是通常被称为,好了, KMDF 驱动程序,就不能不提 WDM WDM 驱动程序通常是指驱动程序,不使用任何额外的框架,如 KMDF 。其次, WDK 与VS2012 / 2013集成,您必须安装它除了WDK获得模板。三, WDM 模板会出现在列表中。如果没有它,我建议重新安装 WDK VS

There is a lot of inconsistencies in the question. First of all, KMDF is a subset of WDF (and it's the only relevant WDF part when talking about kernel drivers), so there is no contradiction between the two. Every kernel driver is essentially a WDM driver. KMDF is a framework in the WDM and KMDF drivers are normally called, well, KMDF drivers, without mentioning WDM. WDM driver usually refers to driver that does not use any additional framework, such as KMDF. Second, WDK integrates with VS2012/2013 and you must have it installed in addition to WDK to get the templates. Third, WDM template does appear in the list. If you don't have it, I suggest reinstalling the WDK and VS.

这篇关于为什么会出现在Windows驱动程序工具包没有WDM内核模式驱动程序模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆