如何在Visual Studio上获取创建Windows内核驱动程序的能力。

huangapple go评论70阅读模式
英文:

How to get the ability to make a windows kernel driver on Visual Studio

问题

这是我的第一个Stack Overflow问题,我目前正在尝试在Visual Studio上创建一个Windows内核模式驱动程序(KMD)。我尝试使用这个指南(https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing-a-very-small-kmdf--driver),但我无法在项目类型中选择“driver”选项,也没有任何选择内核模式驱动程序的选项。我猜想这是因为我在Visual Studio安装程序中没有选择用于内核模式驱动程序开发的某些内容,我应该选择和添加哪些选项以获得这些选项?我已经浏览了整个列表,但没有成功,如果有人能帮助,我会非常感激。

尝试在Visual Studio安装程序中添加与Windows内核模式开发相关的内容,并进行了一些快速的谷歌搜索。

希望找到这个问题的解决方案,但没有成功。

英文:

this is my first stack overflow question and im currently trying to make a Windows KMD on Visual studio. I tried using this guide (https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing-a-very-small-kmdf--driver) but i cant select the "driver" option on project type and i dont have any options for selecting any of the kernel mode drivers. Im guessing this is because i havent selected certain things on the visual studio installer that are used for kernel mode driver development, what should i select and add on the installer to add these options? i already went through the whole list but didnt have any success so if someone could help it would really be appreciated

Tried adding the things related to Windows kmd development on the visual studio installer and some quick google searches

expected to find a solution to this problem but had no success

答案1

得分: 1

我找到了解决方法。只需按照此指南进行更详细的说明,我还将为此指南添加一个TLDR:

TLDR:
从此链接下载Windows SDK,确保在VS中安装了正确的组件后再下载:https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
从此链接下载WDK(或者您可以点击上面的教程链接):https://go.microsoft.com/fwlink/?linkid=2196230

启动Visual Studio(确保它不太过时或无法工作),然后您将能够创建Windows驱动程序。

英文:

Nevermind i found a fix to it. just follow this guide for a more detailed explanation, ill also add a TLDR for this guide aswell:
https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk

TLDR:
download the windows SDK from this link after checking you have the right stuff installed in VS: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
download WDK from this link (or you can click the link on the tutorial link above) https://go.microsoft.com/fwlink/?linkid=2196230

launch visual studio (make sure its not too outdated or it doesnt work) and you will be able to make drivers for Windows

huangapple
  • 本文由 发表于 2023年6月19日 03:44:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76502278.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定