当前位置: 代码迷 >> 驱动开发 >> #include "wdm.h"异常
  详细解决方案

#include "wdm.h"异常

热度:504   发布时间:2016-04-28 11:12:23.0
#include "wdm.h"错误
//     加入则报错
#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编译的。
谢谢!!

------解决方案--------------------
搞定,回收分.
  相关解决方案