A forum for reverse engineering, OS internals and malware analysis 

 #30005  by guidono
 Sun Feb 19, 2017 4:11 pm
Hello !

I'm currently trying to create a driver using the following sample : https://msdn.microsoft.com/en-us/window ... df--driver

But I have 603 errors...

'expected a ';' in basetsd.h
identifier "wchar_t" is undefined in ntdef.h
...

I looked for a solution on internet and I found this interesting link about the universal crt : https://blogs.msdn.microsoft.com/vcblog ... ersal-crt/
So I added to the Additional include directories "$(UniversalCRT_IncludePath)".

But I still have a lot of errors and I don't know why... Do you have any idea ?
 #30006  by guidono
 Sun Feb 19, 2017 5:37 pm
I finally solved my problem !

The path to the crt was missing in the Additional include directories, so I added this one : ../Windows Kits\10\Include\10.0.14393.0\km\crt.
I thought that the km directory was enough :s
 #30322  by tangptr
 Wed May 10, 2017 5:09 pm
Several weeks ago, I built a driver via Batch file. My conclusion is that there are three basic header file directories that building a basic NT-Style driver requires: the crt, api and the ddk(Related to WDK7.1.) In WDK10, names of those directories were respectively changed as km\crt(corresponding to crt,) shared(corresponding to api,) and km(corresponding to ddk.)