Most people who create DDK / WDK projects in Visual Studio do this with the makefile project, which calls the DDK build.exe utility. This works very well - you get the ability to navigate Visual Studio code when creating your DDK project using the standard supported DDK tools.
Note that DDK comes with its own set of compilers, and these compilers should be used to create DDK projects.
OSR has a small set of cmd scripts that should make it easier (many years have passed since I did something with them, I really canβt remember how well they work):
Another similar tool is available at Hollis Technology:
Regarding debugging, unfortunately, the VS debugger will not work to debug the kernel-mode driver. To do this, get a debugging package for Windows , which has a large set of debuggers. The GUI debugger, WinDbg, is pretty nice, even if it is not entirely suitable for the convenience of using Visual Studio. And the documentation with the debugging tools is great - you can learn a lot about the internal components of Windows by simply reading the WinDbg documents.
source share