发生系统错误 1275.此驱动程序被阻止加载

来源:互联网 发布:乐高ev3编程软件简介 编辑:程序博客网 时间:2024/05/22 12:50
        最近在学校windows内核编程,参考的书籍是寒江独钓,然后我就按照书籍上面的步骤一步一步来进行操作,一切进展的很顺利,但是到了利用cmd开启first服务的时候,发生了错误:发生系统错误1275.此驱动程序被阻止加载,于是我就开始google,都说什么开机按F8进入禁用驱动程序签名强制和关闭Windows 7系统中的驱动签名强制要求,关闭强制驱动签名的命令为:

bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS

然而当我每一个都孜孜不倦的尝试的时候,我得到的结果依然是他妈的1275.

  于是我就在google里面将每一个搜索结果都开始认真看了起来,结果被我看到了一个小子的评论,原文如下:

 I am not saying this is what the problem is, but I can state that I
 personally experienced this very issue a long time ago whenever I
 first began playing around with x64. In my particular case it was x64
 windows complaining that the driver it was trying to load was not a
 64-bit driver. Somehow things got setup such that the 32-bit driver
 was always trying to be loaded which does not work on 64-bit Windows.
 On 64-bit Windows all drivers must be 64-bit. Either that or the
 opposite: a 64-bit driver was trying to be loaded by 32-bit Windows.

 Again, I'm not stating that is your problem, only that the "Driver
 has been blocked from loading" error message you mention was
 experienced by myself for the reasons described.

 Hope that helps.

大致的意思在他的印象中这个错误是x64的操作系统想要去加载不是x64的驱动,于是我就知道了我需要利用x64的进行编译(其实一开始我就是利用x64 checked build environment的,因为我的电脑就是64位的,但是在打开cmd进行build的时候,我发现上面有提示WARNING: x64 Native compiling isn't supported. Using cross compilers.Launching OACR monitor,并且编译完之后,系统弹出框提示说这个服务没有数字签名可能该服务会受到影响。于是我就没有进行下一步开启服务的操作)。

       当我利用x64进行编译完之后,虽然还是会与之前的什么警告,但我都没有理会。在开启服务的时候出现了新的错误,意思就是windows不允许安装没有数字签名的驱动程序,于是我就按照上面的方法开机进入了禁用驱动程序签名强制,重新开启服务之后,果然就可以了。

       希望对大家有所帮助。

0 0
原创粉丝点击