Can't get my first Windows 10 Driver to load

Hello,

I am trying to follow Chapter 2 of Pavel Yosifovich’s book Windows Kernel Programming in a “Windows 10 Dev Environment” Hyper-V VM. I have a driver which just loads, returns true, and can unload, super EZ (Source code from the author can be found here). I have built a .sys file for the driver and run sc create with the necessary parameters to create the Windows Service, and also run bcdedit /set testsigning on to hopefully allow the driver to load, but when I run sc start I get StartService FAILED 1275: This Driver has been blocked from loading. I am trying to start the service from an elevated command prompt too.

What other things could I check to figure out why my driver isn’t loading?

Thanks

The issue was pretty simple, I had built the x86 version of driver and tried to load it on x64 platform (which doesn’t work for some reason I guess?). Thanks to rileypatcher in the programming discord for helping!

1 Like