Thank you to everyone for helping.
I am now able to build the driver (.sys) file.
You need
Win 7 x64 VM
VS 2010 installed
DDK Toolkit
WDK Toolkit
Select from toolkit Build Environment, Windows 7 , x86 or x64 Checked Build Environment
At the command prompt, change the directory where your .c and .h source is and run build -c
That seems to work for me.
This driver has been blocked from loading on Win 11 and 10 x64
Re: This driver has been blocked from loading on Win 11 and 10 x64
That "driver blocked from loading" error is a classic. You definitely need to run your app as administrator. Right-click the .exe and choose "Run as administrator." Windows is super picky about driver access these days. Also, double-check that the InpOut32.dll and the .sys driver file are in the same directory as your app.
Re: This driver has been blocked from loading on Win 11 and 10 x64
Where and how do you specify if you want to build DEBUG or RELEASE
I am looking at both the provided MAKEFILE and sources...
Thank you
Contents of the MAKEFILE
!INCLUDE $(NTMAKEENV)\makefile.def
Contents of the Sources
TARGETNAME=hwinterface # your program name (it'll compile to "hello.exe")
TARGETPATH=obj
TARGETTYPE=DRIVER
INCLUDES = %BUILD%\inc
LIBS = %BUILD%\lib
SOURCES=hwinterfacedrv.c # the name of the source file
I am looking at both the provided MAKEFILE and sources...
Thank you
Contents of the MAKEFILE
!INCLUDE $(NTMAKEENV)\makefile.def
Contents of the Sources
TARGETNAME=hwinterface # your program name (it'll compile to "hello.exe")
TARGETPATH=obj
TARGETTYPE=DRIVER
INCLUDES = %BUILD%\inc
LIBS = %BUILD%\lib
SOURCES=hwinterfacedrv.c # the name of the source file