我从 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 中,我转到驱动程序上的项目设置并在其上进行设置:
签名模式->“测试签名”
测试证书 -> 我使用“创建测试证书”选项来创建然后选择一个测试证书。
那么现在有什么问题呢?我怎样才能安装这个驱动程序?