mickypc
驱动牛犊
驱动牛犊
  • 注册日期2007-06-21
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分80分
  • 威望9点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
阅读:1152回复:1

文件改名程序的怪事?

楼主#
更多 发布于:2007-06-30 17:36
明明已经加了 #include <ntddk.h>啦。
我在ntddk.h我清清楚楚看到了这个结构体的阿。
为什么build的时候始终抱错:
error C2065: 'FILE_NAME_INFORMATION' : undeclared identifier

我的头文件precomp.h是
#pragma warning(disable:4214)   // bit field types other than int

#pragma warning(disable:4201)   // nameless struct/union
#pragma warning(disable:4115)   // named type definition in parentheses
#pragma warning(disable:4127)   // conditional expression is constant
#pragma warning(disable:4054)   // cast of function pointer to PVOID
#pragma warning(disable:4244)   // conversion from 'int' to 'BOOLEAN', possible loss of data

#include <ndis.h>
#include <ntstrsafe.h>
#include <ntddk.h>
#include "passthru.h"

是何道理呢?
tooflat
论坛版主
论坛版主
  • 注册日期2002-07-08
  • 最后登录2014-03-11
  • 粉丝2
  • 关注0
  • 积分1007分
  • 威望551点
  • 贡献值3点
  • 好评度476点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2007-07-10 17:29
好像在包含ndis.h前要定义NDIS_WDM宏,记不清了
游客

返回顶部