【发布时间】:2016-04-18 08:03:49
【问题描述】:
我正在尝试编写一个简单的驱动程序。使用这个 Hello World 代码:
#include <ntddk.h>
NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
{
UNREFERENCED_PARAMETER(DriverObject);
UNREFERENCED_PARAMETER(RegistryPath);
DbgPrint("Hello World\n");
return STATUS_SUCCESS;
}
但我收到此错误:
Error 1 error -2: "Inf2Cat, signability test failed." Double click to see the tool output.
我不确定这意味着什么。
我使用Win7 Debug 配置设置。
【问题讨论】:
-
我禁用了 Inf2Cat。这似乎有效。我可以编译和构建一个 .sys 文件。现在,当我尝试使用 OSRLoader 加载它时,我得到
This driver has been blocked from loading