MrWhiteOWL
MrWhiteOWL

Reputation: 37

Windows Driver Kit Cannot Open ddk/ntddk.h

So im currently trying to make a driver. And when i add:

#include <ddk/ntddk.h>

I get the error: Cannot open source file "ddk/ntddk.h". How do i fix this?

Upvotes: 0

Views: 2088

Answers (1)

Max Ouellet
Max Ouellet

Reputation: 306

Which version of the WDK are you using?

For WDK 8 and above, there is no directory called ddk shipped by the WDK, so the include that you have wouldn't work... Just look at where exactly on your disk is ntddk.h located, and make sure that the additional include directories specified in the compiler options include whichever location has ntddk.h. By default, in WDK 8 and above, it should be (and thus you don't need a ddk/ prefix).

Upvotes: 1

Related Questions