阅读:775回复:0
应该如何包含 ntddk.h 头文件
想用 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 初学驱动,很多基本问题不太懂,请高手指点一二,非常感谢。 |
|