NaturalJ0
驱动牛犊
驱动牛犊
  • 注册日期2007-06-04
  • 最后登录2008-11-19
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望2点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
阅读:773回复:0

应该如何包含 ntddk.h 头文件

楼主#
更多 发布于:2007-06-12 10:49
想用 ZwQuerySymbolicLinkObject  函数,查找相关资料后,提示要包含头文件 ntddk.h

于是拿 3790 版中的 sfilter 原码直接拿来,只加了一行 #include <ntddk.h> ,编译就报如下错误。

D:\s>build -ceZ
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: Object root set to: ==> objchk_w2K_x86
BUILD: Compile and Link for i386
BUILD: Examining d:\s directory for files to compile.
BUILD: Compiling d:\s directory
Compiling - sfilter.rc for i386
Compiling - sfilter.c for i386
BUILD: Linking d:\s directory
Compiling - sfilter.c for i386
Linking Executable - objchk_w2k_x86\i386\sfilter.sys for i386
LINK : error LNK1181: cannot open input file 'objchk_w2K_x86\i386\sfilter.obj'
BUILD: Done

    3 files compiled
    1 executable built - 1 Error

初学驱动,很多基本问题不太懂,请高手指点一二,非常感谢。
游客

返回顶部