Hi John,
After taking a look at this it seems to be an issue with using the WDK nuget package with CodeQL. Normally results from outside the source directory should be excluded, but when using the WDK nuget, kit files such as wdm.h are placed in the packages directory in your source directory.
I've created an internal bug to track this, but for now you can work around the issue by changing the structure of your project so that you aren't running CodeQL in the same directory as the nuget packages directory. For example, with a structure similar to below you can run codeql from the "driver" directory so that the WDK nuget files aren't included in your database.
ProjectFolder/
├── driver_solution.sln/
├── packages/
├── driver/
│ ├── driver.c
│ ├── driver.h
│ ├── driver_project.vcxproj