How to build "NullFilter" using VS2019 environment?

  • Thread starter Thread starter お馬鹿
  • Start date Start date

お馬鹿

Guest
I'm sorry to bother you.

I downloaded "NullFilter" sample from following site, and tried to build it.
--------------------------------------
NullFilter File System Minifilter Driver
NullFilter File System Minifilter Driver - Code Samples
--------------------------------------

But I am facing following problem.

1>------ Build started: Project: nullFilter, Configuration: Debug x64 ------
1>Building 'nullFilter' with toolset 'WindowsKernelModeDriver10.0' and the 'Universal' target platform.
1>Stamping x64\Debug\nullFilter.inf
1>Stamping [Version] section with DriverVer=03/23/2020,10.28.26.65
1>Y:\Samples\MiniFilter\NullFilter\NullFilter_File_System_Minifilter_Driver\nullFilter.inf : error 1420: [DefaultInstall]-based INF cannot be processed as Primitive.
1>Y:\Samples\MiniFilter\NullFilter\NullFilter_File_System_Minifilter_Driver\nullFilter.inf(25-25): error 1421: Section [DefaultInstall] should have an architecture decoration.
1>Y:\Samples\MiniFilter\NullFilter\NullFilter_File_System_Minifilter_Driver\nullFilter.inf(36-36): error 1421: Section [DefaultUninstall] should have an architecture decoration.
1>Y:\Samples\MiniFilter\NullFilter\NullFilter_File_System_Minifilter_Driver\nullFilter.inf(71-71): warning 1205: Section [NullFilter.DriverFiles] referenced from DelFiles and CopyFiles directive.
1>Done building project "nullFilter.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



So I modified following sections:
---------------------------------------
[DefaultInstall] ===> [DefaultInstall.ntamd64]
[DefaultInstall.Services] ===> [DefaultInstall.ntamd64.Services]
[DefaultUninstall] ===> [DefaultUninstall.ntamd64]
[DefaultUninstall.Services] ===> [DefaultUninstall.ntamd64.Services]
---------------------------------------

But error still occurred.

1>------ Build started: Project: nullFilter, Configuration: Debug x64 ------
1>Building 'nullFilter' with toolset 'WindowsKernelModeDriver10.0' and the 'Universal' target platform.
1>Stamping x64\Debug\nullFilter.inf
1>Stamping [Version] section with DriverVer=03/23/2020,11.20.55.377
1>Y:\Samples\MiniFilter\NullFilter\NullFilter_File_System_Minifilter_Driver\nullFilter.inf : error 1420: [DefaultInstall]-based INF cannot be processed as Primitive.
1>Y:\Samples\MiniFilter\NullFilter\NullFilter_File_System_Minifilter_Driver\nullFilter.inf(71-71): warning 1205: Section [NullFilter.DriverFiles] referenced from DelFiles and CopyFiles directive.
1>Done building project "nullFilter.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could someone help me please to solve this problem?

P.S.
My English skills are very low, but I will do my best so I appreciate your support.

Continue reading...
 

Similar threads

Back
Top