Compiling WDK (Windows Development Kit) sample projects
If you’ve installed the Windows Development Kit, you may have wondered how to compile the included sample projects considering there are no project files to easily open with Visual Studio. This is primarily because the WDK uses a separate toolchain.
In order to compile all samples, click on Start > Programs > “Windows Driver Kits” > “WDK xxxxxxx” > Build Environments > Windows 7 (or other platform) > x86 Checked Build Free Environment
You can select a different platform or operating system from the menu structure if you wish. Once the command prompt opens, type:
That’s it. Sit back and wait for the compilation to complete. It will take quite some time.