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|
|Writing WDF Drivers||25 Feb 2019||OSR Seminar Space|
|Developing Minifilters||8 April 2019||OSR Seminar Space|