When I have used the KMDF toaster sample bus driver along with the co-installer project, including wdm.h in the driver source code causes such identifiers as DRIVER_ADD_DEVICE and DRIVER_STARTIO to be undefined, along with many other identifiers. The same code compiled successfully on VS 2015 on a separate computer prior to installing VS 2017 Professional on a new Windows 10 system. I have checked and it appears wdm.h is included in the system directory under the Visual Studio installation includes directory, however the directory relevant to WDM does not seem to be included in the VS (global or item) macro path variables with the VS installation. Additionally, this code uses the stdarg.h and stdio.h headers. I would need to be able to develop the kernel driver code under WDM using a KMDF sample. Once the project is loaded with VS 2017, the external dependencies directory contents include header files that are only relevant to wdf.
It looks like you're new here. If you want to get involved, click one of these buttons!
|Upcoming OSR Seminars|
|Developing Minifilters||29 July 2019||OSR Seminar Space|
|Writing WDF Drivers||23 Sept 2019||OSR Seminar Space|
|Kernel Debugging||21 Oct 2019||OSR Seminar Space|
|Internals & Software Drivers||18 Nov 2019||Dulles, VA|