真正的驱动入门(—)
看到两处
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.