首页
社区
课程
招聘
[求助]驱动程序开发环境,环境变量的设置问题
发表于: 2008-4-29 05:15 7246

[求助]驱动程序开发环境,环境变量的设置问题

2008-4-29 05:15
7246
【文章标题】: 驱动程序开发环境的设置(vc6.0+ddkbild+server 2003)
【文章作者】: chinatme
【作者邮箱】: chinatme@gmail.com
【作者QQ号】: 723747753
【作者声明】: 只是感兴趣,没有其他目的。失误之处敬请诸位大侠赐教!
--------------------------------------------------------------------------------
【详细过程】
    可能有很多兄弟想做驱动方面的开发但是又无从下手,我也是刚入门,找东西真是太郁闷了,找了半天才有现在的这一点点
  小小的成果.写下来给和我一样的刚入门的兄弟们做个参考吧
    具体步骤如下:
    1.首先当然是要去Microsoft去下它的开发环境了:
      这个是下载地址:http://www.microsoft.com/whdc/devtools/ddk/default.mspx
    2.安装完成以后要设置环境变量:
      我用的是2k3所以环境变量设置成WNETBASE
      其它的系统依次为:win2000 W2KBASE
                       winxp XPBASE
      它们的路径当然是ddk环境的主目录了winddk如果这个设置不正确编译器就会报错.
      例如我的机器主目录是:c:\winddk则我的环境变量就设置成了c:\winddk
    3.把ddkbuild.bat复制到vc的bin目录下
      ddkbuild的下载地址为
        http://www.osronline.com/article.cfm?article=43
      这里有详细的英文ddkbuild.bat英文说明  
        http://www.hollistech.com/Resources/ddkbuild/ddkbuild.htm
    4.设置vc工程
           在工程的设置项里:
         bulid commandline:ddkbuild -WNET checked .
         rebuild all options:-cZ
    5.进行工程编译
  
    我在win2003下进行了测试没有问题

其中   2.安装完成以后要设置环境变量:
这个怎么设置的? 问题比较笨,不过我真不知道,郁闷。研究了一天,晕

[课程]FART 脱壳王!加量不加价!FART作者讲授!

收藏
免费 0
支持
分享
最新回复 (12)
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
我用的是2k3所以环境变量设置成WNETBASE
      其它的系统依次为:win2000 W2KBASE
                       winxp XPBASE

这个在哪里设置,求各位老大帮忙,实在是没办法了
2008-4-29 05:16
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
在线等,各位帮忙啊
2008-4-29 05:17
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
--------------------Configuration: hookzwcreateprocess - Win32 XP Checked--------------------
DDKBUILD VERSION 3.12.35 FREEWARE FROM HOLLIS TECHNOLOGY SOLUTIONS
Comments? Suggestions? info@hollistech.com
DDKBUILD using NET DDK in directory .
for chk version (basedir E:\WINDDK\3790.1830 extension chk_wxp_x86)
commandline: " build -e -MI         "
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: Using 4 child processes
BUILD: Object root set to: ==> objchk_wxp_x86
BUILD: Compile and Link for i386
BUILD: Loading E:\WINDDK\3790.1830\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory for files to compile.
    c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess
    c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess - 1 source files (952 lines)
BUILD: Compiling (NoSync) c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory
errors in directory c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
BUILD: Compiling  c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
BUILD: Compile errors: not linking c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory
BUILD: Done
    6 files compiled - 6 Errors
=============== build warnings ======================
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
warnings found in build
errors found in build

build complete status 4
building browse information files

protector.sys - 0 error(s), 12 warning(s)
2008-4-29 05:46
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
上面的报错是怎么回事?
2008-4-29 06:21
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
ding
ding
ding
ding
ding
ding
ding
ding
ding
2008-4-29 08:31
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
ding
ding
ding
2008-4-29 11:22
0
雪    币: 235
活跃值: (23)
能力值: ( LV6,RANK:90 )
在线值:
发帖
回帖
粉丝
8
http://bbs.pediy.com/showthread.php?t=63463&highlight=editplus
看看我这篇 希望对你有帮助
2008-4-29 14:29
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
9
我是装了2003ddk,可惜编译不了,报错,你的方法,感觉没ddkbuild.dat这个东西好用阿,可惜我编译不了,麻袋上绣花,基础太差,晕
2008-4-30 01:27
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
10
--------------------Configuration: hookzwcreateprocess - Win32 XP Checked--------------------
DDKBUILD VERSION 3.12.35 FREEWARE FROM HOLLIS TECHNOLOGY SOLUTIONS
Comments? Suggestions? info@hollistech.com
DDKBUILD using NET DDK in directory .
for chk version (basedir E:\WINDDK\3790.1830 extension chk_wxp_x86)
commandline: " build -e -MI         "
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: Using 4 child processes
BUILD: Object root set to: ==> objchk_wxp_x86
BUILD: Compile and Link for i386
BUILD: Loading E:\WINDDK\3790.1830\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory for files to compile.
    c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess
    c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess - 1 source files (952 lines)
BUILD: Compiling (NoSync) c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory
errors in directory c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
BUILD: Compiling  c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
NMAKE : warning U4006: special macro undefined : '$<'
Compiling - objchk_wxp_x86\i386 for all platforms
BUILD: Compile errors: not linking c:\documents and settings\administrator\桌面\prmonitor\src\hookzwcreateprocess directory
BUILD: Done
    6 files compiled - 6 Errors
=============== build warnings ======================
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
NMAKE : warning U4006: special macro undefined : '$<'
warnings found in build
errors found in build

build complete status 4
building browse information files

protector.sys - 0 error(s), 12 warning(s)
2008-4-30 07:02
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
11
谁能帮我看看阿,我是新手,哪位大哥,都一天了
2008-4-30 07:02
0
雪    币: 102
活跃值: (10)
能力值: ( LV3,RANK:20 )
在线值:
发帖
回帖
粉丝
12
试试俺的方法啊,感觉也比较好用..
http://bbs.pediy.com/showthread.php?t=63623
2008-4-30 09:16
0
雪    币: 116
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
13
谢谢老大,看看能不能行,其他高手都忙得很,不点我,呵呵
2008-4-30 10:27
0
游客
登录 | 注册 方可回帖
返回
//