Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open wdf.h source file #1210

Open
jahnavidubisetty opened this issue Aug 29, 2024 · 2 comments
Open

Cannot open wdf.h source file #1210

jahnavidubisetty opened this issue Aug 29, 2024 · 2 comments
Assignees
Labels

Comments

@jahnavidubisetty
Copy link

Encountering an error saying that "cannot open wdf.h source file".

@v-junyli
Copy link

Hi,

Can you include more info on how to repro the issue? Like what version of Visual Studio and WDK.

@v-junyli v-junyli self-assigned this Nov 20, 2024
@saraphinesER
Copy link

Encountering an error saying that "cannot open wdf.h source file".

Not sure if this helps since you didn't mention much detail, so this is just for your information.

When I tried to build Toaster project, I also suffer this error "can't open wdf.h",
then I modify the "Windows Driver Kit" checkbox in Visual studio community installer as below.
Image

I expect this should help, WDK path should be added into system, somehow it's still failed after update,
also I can't not find wdf.h by manually search "C:\Program Files (x86)\Windows Kits".
So I download Windows Driver Kit (WDK) from Microsoft, do installation
and add the path of wdf.h into "Include Directories" of Toaster project.
Then the error is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants