我想写一个简单的驱动程序。使用此的Hello World代码:Windows设备驱动程序
#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加载它时,我得到'此驱动程序已被阻止加载' –