写了一小段代码,原来没有包含其他 .h 文件,编译正确。之后新加了#include <ntifs.h>,并在代码中使用了ObQueryNameString()函数,编译时报错:c:\winddk\6000\inc\ddk\ntifs.h(85) : error C23...
全文
回复(2) 2008-09-16 15:51 来自版块 - 文件系统(过滤)驱动程序开发
表情
chudd谢谢!真是这个问题!(2008-09-17 12:23)
dreamsity你在#include <ntifs.h>之前#include <ntddl.h>, 在驱动中,这两个头文件无法同时包含。 如果一定要使用<ntifs.h>中的定义,或者是把<ntddk.h>的包含注释掉,或者是直接把定义拷贝过来。(2008-09-17 11:57)

返回顶部