Windows driver repo, include DDK, WDM and WDF ones.
It depends. Generally speaking, latest WDF toolkit is a good choice. According to your target platform and device type, you should select carefully.
On general situations
MyNTDriver\
makefile
sources
MyWDMDriver\
makefile
makefile.inc
sources
Create an empty project Delete configuration of Debug and Release. to be continued.
Take Windows XP as target platform, Free version as target object type, for example.
1.Open Start menu
2.All Programs
3.Windows Driver Kits
4.WDK 7600.16385.1
5.Build Environments
6.Windows XP
7.x86 Free Build Environment
Freeversion is for release. Here theKdPrint((L"xxxx\n"))takes no effect.Checkedversion is for debugging. Here theKdPrint((L"xxxx\n"))makes sense.DbgPrintalways have effects.
\#
\# DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source
\# file to this component. This file merely indirects to the real make file
\# that is shared by all the driver components of the Windows NT DDK
\#
!INCLUDE $(NTMAKEENV)\makefile.def