我正在尝试编写一个简单的驱动程序。使用此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
配置设置。
我做了类似的程序,它对于win7调试配置非常完美
#include "ntddk.h"
#include "stdio.h"
#include "stdlib.h"
void DriverUnload(
PDRIVER_OBJECT pDriverObject)
{
DbgPrint("Driver unloading\n");
}
NTSTATUS DriverEntry(
PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
{
PDEVICE_OBJECT pdo;
DriverObject->DriverUnload = DriverUnload;
DbgPrint("Hello, World\n");
return STATUS_SUCCESS;
}
也可以检查cat文件是否存在任何64位修饰错误
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句