阅读:1090回复:1
求助DS的问题,万分感谢
高手,我又有问题要请教了 ,我编译武安河的那个加了补丁的RegSample例子,为什么一直有Compiling...
Test_RegSample.cpp Cocuments and Settingsminfei桌面wdmsourceWin2000RegSampleexeTest_RegSample.cpp(99) : error C2065: 'CTL_CODE' : undeclared identifier Cocuments and Settingsminfei桌面wdmsourceWin2000RegSampleexeTest_RegSample.cpp(99) : error C2065: 'FILE_DEVICE_UNKNOWN' : undeclared identifier Cocuments and Settingsminfei桌面wdmsourceWin2000RegSampleexeTest_RegSample.cpp(99) : error C2065: 'METHOD_BUFFERED' : undeclared identifier Cocuments and Settingsminfei桌面wdmsourceWin2000RegSampleexeTest_RegSample.cpp(99) : error C2065: 'FILE_ANY_ACCESS' : undeclared identifier Cocuments and Settingsminfei桌面wdmsourceWin2000RegSampleexeTest_RegSample.cpp(121) : error C2065: 'METHOD_IN_DIRECT' : undeclared identifier Cocuments and Settingsminfei桌面wdmsourceWin2000RegSampleexeTest_RegSample.cpp(143) : error C2065: 'METHOD_NEITHER' : undeclared identifier Error executing cl.exe. Test_RegSample.exe - 6 error(s), 0 warning(s) The following environment variables were not found $(TARGET_LIB_PATH) 驱动开发 17:23:00 这些错误呢?我查了查// RegSampleioctl.h // // Define control codes for RegSample driver // #ifndef __RegSampleioctl__h_ #define __RegSampleioctl__h_ #define READ_DWORD CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS) #define READ_STRING CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_IN_DIRECT, FILE_ANY_ACCESS) #define READ_BOOLEAN CTL_CODE(FILE_DEVICE_UNKNOWN, 0x802, METHOD_NEITHER, FILE_ANY_ACCESS) #endif 驱动开发 17:26:16 这些代码,编译说CTL_CODE没有定义,总之就是这个里面所有的符号他说都没定义,请问这个。H文件里面的这些是怎么理解的?我开始照着书上把那些派遣例程的代码都加了,编译没任何问题能生成SYS文件,可就是生成测试程序的时候出问题,还请高手指教,万分感谢!!!!!!!!!!!!!!!! |
|
沙发#
发布于:2004-09-21 09:05
加
#include <winioctl.h> |
|