|
// 加入则报错
#include "wdm.h"
#include "ntddk.h"
#include "wmilib.h"
// AddDevice
NTSTATUS AddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT pdo)
{
DbgPrint("AddDevice Called.\n");
return STATUS_SUCCESS;
}
// Unload
VOID DriverUnload( IN PDRIVER_OBJECT DriverObject )
{
DbgPrint("DriverUnload Called.\n");
}
NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
{
DbgPrint("I am a driver and I loaded!");
DriverObject->DriverExtension->AddDevice = AddDevice;
DriverObject->DriverUnload = DriverUnload;
return STATUS_SUCCESS;
}
我是直接用WinXp Checked Build编译的。
谢谢!!
|
|