Why am I getting error 1275 when trying to load my driver?

Wes 101 Reputation points
2021-02-26T13:45:30.537+00:00

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

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,546 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wes 101 Reputation points
    2021-02-28T19:39:49.793+00:00

    It turns out that I was building the x86 instead of the x64 version of the driver and that's why it wouldn't load

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful