QQ群:852283276
微信:arm80x86
微信公众号:青儿创客基地
B站:主页 https://space.bilibili.com/208826118
好久不开发Windows驱动,现在又变天了,微软的工具更新的非常快,Visual Studio和WDK都发了新版本,推荐安装新版本,但如果非想安装老版本,也可以。Visual Studio 2022不支持Windows 11, version 21H2 WDK,必须下载最新的Windows 11, version 22H2 WDK,这个版本的WDK已经不支持Win7了,
按照提示,下载安装Visual Studio 2022,选择Desktop development with C++开发,在单个组件上安装,MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)和MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (Latest),默认下载缓存位于C:\ProgramData\Microsoft\VisualStudio\Packages
,下一步安装SDK,按照提示下载最新版本的SDK独立安装,也可以从Visual Studio 2022上,选中安装,版本是10.0.22621.0,
然后安装WDK,只能下载独立安装,无法通过Visual Studio 2022来安装,版本10.0.22621.382,SDK和WDK版本必须匹配,否则无法工作。
在 WDK 10 以前的 WDK 版本中,驱动程序解决方案始终需要包项目。 在 WDK 10 中,仅当你在驱动程序包中加入多个驱动程序时才需要包项目。 使用以下指南:
Please review Hardware development kits for Windows 10, Version 2004 (10.19041.1), which addresses a bug with ExAllocatePoolZero.
允许您测试号TESTSIGNING引导配置选项处于启用状态的系统上使用的 HAL 扩展。此更新还提供了替代 Windows Phone OEM 2013 测试证书。
If you’re debugging Windows XP, Windows Server 2003, Windows Vista, or Windows Server 2008 (or using one of these operating systems to run Debugging Tools for Windows), you need to use the Windows 7 release of the debugging tools. It’s included in the SDK for Windows 7 and .NET Framework 4.0.
GRMSDK_EN_DVD.iso
)最方便的方法是使用Microsoft public symbol server。
参考之前的博客,设置localtime。
Please review Hardware development kits for Windows 10, Version 2004 (10.19041.1), which addresses a bug with ExAllocatePoolZero.
Issue in ExAllocatePoolZero, ExAllocatePoolQuotaZero, and ExAllocatePoolPriorityZero functions FIXED!
Microsoft is aware of an issue with ExAllocatePoolZero that can lead to an allocation not getting zeroed on Windows 10, version 1909. This issue has been fixed in a security refresh of the WDK for Windows 10, version 2004 and the Enterprise WDK (EWDK) for Windows 10, version 2004 on December 16th, 2020. For information on downloading the latest WDK, see Download the Windows Driver Kit (WDK).
This routine is a wrapper for and a recommended replacement option for ExAllocatePoolWithTag.
ExAllocatePoolZero allocates pool memory of the specified type and returns a pointer to the allocated block. It is identical to ExAllocatePoolWithTag except it zero initializes the allocated memory.
每次打开vs都会弹出下面的对话框,在vs2019中,卸载WDK的vsix扩展,就不报错了,
Driver Testing
Could not load test information. Error: 未能加载文件或程序集“TaefTestParser, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。.
SDK可以有多个,但是WDK只能有一个,而且安装新版本的WDK时,旧的WDK要卸载,而且SDK至少要有一个版本和WDK版本匹配。到控制面中,将所有WDK卸载,然后重装WDK即可。