0

我从 MSDN 下载了IOCTL 示例驱动程序。我试图在此示例中运行一个可执行文件以从其 SYS 文件加载驱动程序,但在调用 StartService 时出现此错误:

StartService failure! Error = 577
Unable to install driver.
ControlService failed!  Error = 1062

577,根据错误代码文档,意味着:

ERROR_INVALID_IMAGE_HASH
577 (0x241)
Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.

我不明白为什么它不会启动它,因为在 Visual Studio 中,我转到驱动程序上的项目设置并在其上进行设置:

签名模式->“测试签名”

测试证书 -> 我使用“创建测试证书”选项来创建然后选择一个测试证书。

那么现在有什么问题呢?我怎样才能安装这个驱动程序?

4

1 回答 1

2

从 Windows Vista 64 位开始,Microsoft 开始要求签名驱动程序,除非使用引导时开发人员选项绕过。

未签名驱动程序(F8 选项或附加内核调试器)和测试签名驱动程序(TESTSIGNING 引导配置)都有选项。最简单的绕过方法是在开机的时候按F8,选择“Disable Driver Signature Enforcement”,会一直持续到下次开机。

于 2014-06-07T00:14:57.580 回答