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

My x64 port of InpOut32
Michael
New User
Posts: 12
Joined: Tue Jan 14, 2025 6:42 pm

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

Post 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.
Cuesta
New User
Posts: 7
Joined: Mon Dec 04, 2017 5:03 pm

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

Post 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.
Michael
New User
Posts: 12
Joined: Tue Jan 14, 2025 6:42 pm

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

Post 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
Post Reply