首页
社区
课程
招聘
[求助]CCDeath教程的疑问
发表于: 2008-7-31 19:50 6296

[求助]CCDeath教程的疑问

2008-7-31 19:50
6296
真正的驱动入门(—)
看到两处
1.
首先点"DDK Build Settings"->Luanch Program.接着启动VC,工具栏就看见DriverStudio工具栏了.点设置,开始...
  在设置中,反正没有console测试程序,干脆测试程序就不要集成到驱动程序里面去。把设置中的"集成测试程序"打勾
到这!
那个集成测试程序我没有看见在哪!如图1
2.
1.文件打开空间(*dsw)  ,去到C:\Program Files\Compuware\DriverStudio\DriverWorks\source下重新编译一下,
  选择批(最后两个)组建.
   Build Environment Variables
   BASEDIR=H:\WINDDK\2600
   vdw_wdm.lib - 0 error(s), 0 warning(s)
我编译后如图2
--------------------Configuration: NdisWdm - Win32 IA64 Free--------------------
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
C:\Program Files\Compuware\DriverStudio\DriverWorks\include\kcsq.h(35): Could not find the file csq.h.
Compiling with DDK compiler...
k1394.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
k1394Async.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
K1394Isoc.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kevent.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kexception.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kirp.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
klower.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kmutex.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kpnplow.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
ksemaphr.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kspin.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
ksysthrd.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
ktimer.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kusb.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
kustring.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
util.cpp
C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(315) : error C2785: 'ULONG_PTR ListEntryOffset(T *)' and 'ULONG ListEntryOffset(IRP *)' have different return types
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(304) : see declaration of 'ListEntryOffset'
        C:\Program Files\Compuware\DriverStudio\DriverNetworks\include\KNdisList.h(314) : see declaration of 'ListEntryOffset'
Generating Code...
Error executing cl.exe.

kndiswdm.lib - 16 error(s), 0 warning(s)
如图3

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

上传的附件:
  • 1.JPG (20.71kb,101次下载)
  • 2.JPG (106.01kb,107次下载)
  • 3.JPG (136.62kb,106次下载)
收藏
免费 0
支持
分享
最新回复 (6)
雪    币: 145
活跃值: (85)
能力值: ( LV5,RANK:60 )
在线值:
发帖
回帖
粉丝
2
请达人指教
2008-7-31 19:51
0
雪    币: 7651
活跃值: (523)
能力值: ( LV9,RANK:610 )
在线值:
发帖
回帖
粉丝
3
用MakeSys吧
2008-7-31 20:03
0
雪    币: 145
活跃值: (85)
能力值: ( LV5,RANK:60 )
在线值:
发帖
回帖
粉丝
4
莫非这就是达人的指教?
2008-8-1 06:36
0
雪    币: 145
活跃值: (85)
能力值: ( LV5,RANK:60 )
在线值:
发帖
回帖
粉丝
5
Deleting intermediate files and output files for project 'CCDeath - Win32 Checked'.
--------------------Configuration: CCDeath - Win32 Checked--------------------
Compiling resources with DDK resource compiler...
Compiling with DDK compiler...
CCDeathDevice.cpp
CCDeathDriver.cpp
Generating Code...
Linking with DDK linker...
---------------------------Build SoftICE Symbols----------------------------
Compuware NM32 Symbol Translator/Loader version 4.3.2
(C) Compuware Corporation, 1996-2004
MODULE=.\objchk\i386\CCDeath.sys
PROMPT=OFF
SoftICE is not active
Translation of C:\CCDeath4\CCDeath\Driver\objchk\i386\CCDeath.sys successfully completed

CCDeath.sys - 0 error(s), 0 warning(s)
2008-8-1 07:25
0
雪    币: 145
活跃值: (85)
能力值: ( LV5,RANK:60 )
在线值:
发帖
回帖
粉丝
6
开始要测试CCDeath驱动程序了:
设备已经被发现,打开句柄成功
READ_DWORD:0x1e240
Press any key to continue
2008-8-1 07:27
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
编译时,注意用VC打开工程文件后,有两个工程,要先将VdwLibs工程设为当前Active Project,然后在工具栏上单击右键选择“组建”,在弹出的编译工具栏中配置一下编译平台的设置:选择Win32 WDM Checked平台(因为我们用的XP),然后编译就应该可以了
2008-12-8 23:14
0
游客
登录 | 注册 方可回帖
返回
//