microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.95k stars 4.94k forks source link

delete.inf : error #895

Closed kouzhudong closed 1 year ago

kouzhudong commented 1 year ago

已启动重新生成… 1>------ 已启动全部重新生成: 项目: delete, 配置: Debug Win32 ------ 1>Building 'delete' with toolset 'WindowsKernelModeDriver10.0' and the 'Universal' target platform. 1>Stamping Debug\delete.inf 1>Stamping [Version] section with DriverVer=02/22/2023,7.46.41.716 1>D:\code\microsoft\Windows-driver-samples\filesys\miniFilter\delete\delete.inf : error 1420: [DefaultInstall]-based INF cannot be processed as Primitive. 1>D:\code\microsoft\Windows-driver-samples\filesys\miniFilter\delete\delete.inf(8-8): warning 1324: [Version] section should specify PnpLockdown=1 to prevent external apps from modifying installed driver files. 1>D:\code\microsoft\Windows-driver-samples\filesys\miniFilter\delete\delete.inf(25-25): error 1421: Section [DefaultInstall] should have an architecture decoration. 1>D:\code\microsoft\Windows-driver-samples\filesys\miniFilter\delete\delete.inf(36-36): error 1421: Section [DefaultUninstall] should have an architecture decoration. 1>D:\code\microsoft\Windows-driver-samples\filesys\miniFilter\delete\delete.inf(72-72): warning 1205: Section [MiniFilter.DriverFiles] referenced from DelFiles and CopyFiles directive. 1>已完成生成项目“delete.vcxproj”的操作 - 失败。 ========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========

jasonknichel commented 1 year ago

Thank you for the report. These are known issues that should not appear if you build the sample with the Build-Sample.ps1 script at the root of the repo.