Open Sky370 opened 3 years ago
install window developer kit
same for me. I already tried vs 2017, 2019, 2022, different SDK's. same error all the time
is not sdk guys, is WDK https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk then add path to build
Go to project properties -> C/C++ -> General, and add ddk headers path to Additional Include Directories tab. It should be sth like $(WDKPATH)\inc\ddk where $(WDKPATH) is ofc a directory where You have installed WDK.
path example C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\km`
@doomedraven i need a little bit more help. Running windows 10 21h2 version. According this ms doc i have installed vs 2019 enterprise and correct version of sdk is pre selected in vs installer side screen when i pick c++ development package. Then i have installed WDK for Windows 10, version 2004 as it fits for windows 10 21h2. At the end of wdk installation it also installed the wdk vs 2019 extension.
I think, this link should be added to readme section: https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/other-wdk-downloads.md
I dont understand that adding path section. Should i add this path(WDKPATH) variable to windows's env. setting,too?
I have added the path to Additional Include Directories but how $(WDKPATH) is recognized by visual studio?
Another question is on my wdk path, inside km folder there is no inc or ddk folder as you mentioned:
I did clean install of everthing, it is building now but i got an error
---- Update ----- Deleting %ManufacturerName%=Standard,NT$ARCH$ line make it to pass this error but now i have another:
---- Another Update --------
Adding this line skip all the secure warnings:
Now i have an another error about SignTask, it is about signing the driver i think:
in my case i just added inside of the VS, nothing outside of that. but that was many months ago, i didn't use it after. , about WDKPATH just see my path example and replace with your version
Thanks, i have managed to build it succesfully and created the script. The script is just working fine inside the vm.
I get MSB8020 issue when I try to build as Release/x64. Do you have any Idea on how to solve this issue? I have already downloaded WDK 10.![Screenshot (19)](https://user-images.githubusercontent.com/8536864/93216051-4bea3d80-f778-11ea-802b-fce40cd1bdad.png)