Page 2 of 2

Re: This driver has been blocked from loading on Win 11 and 10 x64

Posted: Tue Feb 11, 2025 7:28 pm
by Michael
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.

Re: This driver has been blocked from loading on Win 11 and 10 x64

Posted: Tue Mar 25, 2025 6:34 pm
by Cuesta
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

Posted: Mon Apr 07, 2025 3:55 pm
by Michael
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