wywwwl
驱动大牛
驱动大牛
  • 注册日期2002-08-16
  • 最后登录2018-04-07
  • 粉丝1
  • 关注0
  • 积分-10分
  • 威望135点
  • 贡献值6点
  • 好评度76点
  • 原创分0分
  • 专家分0分
  • 社区居民
阅读:1645回复:3

郁闷了n天的一个问题

楼主#
更多 发布于:2003-07-01 21:56
我把XFILLER中的一个例子编译了一下,结果出来了一堆错误

error C2065: \'NDIS_MINIPORT_CHARACTERISTICS\' : undeclared identifier
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(20) : error C2146: syntax error : missing \';\' before identifier \'MiniportStruct\'
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(20) : error C2065: \'MiniportStruct\' : undeclared identifier
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(24) : error C2224: left of \'.MajorNdisVersion\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(25) : error C2224: left of \'.MinorNdisVersion\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(26) : error C2224: left of \'.Reserved\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(27) : error C2224: left of \'.HaltHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(28) : error C2224: left of \'.InitializeHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(29) : error C2224: left of \'.QueryInformationHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(30) : error C2224: left of \'.SetInformationHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(31) : error C2224: left of \'.ResetHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(32) : error C2224: left of \'.TransferDataHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(34) : error C2224: left of \'.ReconfigureHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(35) : error C2224: left of \'.DisableInterruptHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(36) : error C2224: left of \'.EnableInterruptHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(37) : error C2224: left of \'.HandleInterruptHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(38) : error C2224: left of \'.ISRHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(39) : error C2224: left of \'.AllocateCompleteHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(41) : error C2224: left of \'.CheckForHangHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(42) : error C2224: left of \'.SendHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(43) : error C2224: left of \'.ReturnPacketHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(48) : error C2224: left of \'.SendPacketsHandler\' must have struct/union type
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(50) : warning C4013: \'NdisIMRegisterLayeredMiniport\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(83) : warning C4013: \'NdisIMGetDeviceContext\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(83) : warning C4047: \'=\' : \'struct _ADAPT *\' differs in levels of indirection from \'int \'
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(103) : warning C4013: \'NdisMSetAttributesEx\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(106) : error C2065: \'NDIS_ATTRIBUTE_IGNORE_PACKET_TIMEOUT\' : undeclared identifier
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(107) : error C2065: \'NDIS_ATTRIBUTE_IGNORE_REQUEST_TIMEOUT\' : undeclared identifier
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(108) : error C2065: \'NDIS_ATTRIBUTE_INTERMEDIATE_DRIVER\' : undeclared identifier
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(109) : error C2065: \'NDIS_ATTRIBUTE_DESERIALIZE\' : undeclared identifier
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(110) : error C2065: \'NDIS_ATTRIBUTE_NO_HALT_ON_SUSPEND\' : undeclared identifier
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(712) : warning C4013: \'NdisMSetMiniportSecondary\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\MINIHOOK.C(744) : warning C4013: \'NdisMPromoteMiniport\' undefined; assuming extern returning int
PROTHOOK.C
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(41) : error C2039: \'BindAdapterHandler\' : is not a member of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
        D:\\NTDDK\\INC\\DDK\\ndis.h(7750) : see declaration of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(42) : error C2039: \'UnbindAdapterHandler\' : is not a member of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
        D:\\NTDDK\\INC\\DDK\\ndis.h(7750) : see declaration of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(43) : error C2039: \'UnloadHandler\' : is not a member of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
        D:\\NTDDK\\INC\\DDK\\ndis.h(7750) : see declaration of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(44) : error C2039: \'ReceivePacketHandler\' : is not a member of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
        D:\\NTDDK\\INC\\DDK\\ndis.h(7750) : see declaration of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(45) : error C2039: \'PnPEventHandler\' : is not a member of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
        D:\\NTDDK\\INC\\DDK\\ndis.h(7750) : see declaration of \'_NDIS30_PROTOCOL_CHARACTERISTICS\'
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(193) : warning C4013: \'NdisIMInitializeDeviceInstanceEx\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(266) : warning C4013: \'NdisIMDeInitializeDeviceInstance\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(393) : warning C4013: \'NdisMQueryInformationComplete\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(402) : warning C4013: \'NdisMSetInformationComplete\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(433) : warning C4013: \'NdisMIndicateStatus\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(457) : warning C4013: \'NdisMIndicateStatusComplete\' undefined; assuming extern returning int
D:\\NTDDK\\src\\xpassthru\\PROTHOOK.C(619) : warning C4013: \'NdisMSleep\' undefined; assuming extern returning int
Error executing cl.exe.
Creating browse info file...

xpassthru.sys - 32 error(s), 13 warning(s)

为什么会这样啊?
ntddk下有好几个ndis,他们中的哪个是主要的啊?

琢磨悟真知
Gong_XG
驱动太牛
驱动太牛
  • 注册日期2002-10-01
  • 最后登录2010-11-25
  • 粉丝0
  • 关注0
  • 积分313分
  • 威望46点
  • 贡献值0点
  • 好评度4点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-07-02 09:39
用build 编译了吗?
shinebean
驱动牛犊
驱动牛犊
  • 注册日期2003-02-27
  • 最后登录2004-01-07
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-07-02 16:04
error C2065: \'NDIS_MINIPORT_CHARACTERISTICS\' : undeclared identifier
缺少头文件?? :)
think different
scsi
驱动中牛
驱动中牛
  • 注册日期2002-03-22
  • 最后登录2011-03-09
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望116点
  • 贡献值0点
  • 好评度106点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-07-02 16:50
是的,少包含了头文件
游客

返回顶部