Hi,
I am working my way through my first driver and was using OSR and the
following Microsoft article:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx
My code is copy and pasted from the article.
Error 1 error C2065: ‘KmdfSmallEvtDeviceAdd’ : undeclared identifier
c:\HelloWorld\HelloWorld\Driver.c 14 1 HelloWorld
Warning 2 warning C4047: ‘function’ : ‘PFN_WDF_DRIVER_DEVICE_ADD’ differs
in levels of indirection from ‘int’ c:\HelloWorld\HelloWorld\Driver.c 14 1
HelloWorld
Warning 3 warning C4024: ‘WDF_DRIVER_CONFIG_INIT’ : different types for
formal and actual parameter 2 c:\HelloWorld\HelloWorld\Driver.c 14 1
HelloWorld
Error 4 error MSB3030: Could not copy the file
“c:\HelloWorld\x64\Win7Debug\HelloWorld.sys” because it was not found.
C:\Program
Files (x86)\Windows Kits\8.1\build\WindowsDriver.common.targets 1366 5
HelloWorld
Package
5 IntelliSense: identifier “KmdfSmallEvtDeviceAdd” is undefined
c:\HelloWorld\HelloWorld\Driver.c 14 34 HelloWorld
I think the main issue is the undeclared identifier, which I would imagine
is because I’m missing a library; however, I have not been able to find
what library to include.
My system is Win7 64-bit.
Thanks in advance!
J. Brett Cunningham