DDK安装指导.doc_第1页
DDK安装指导.doc_第2页
DDK安装指导.doc_第3页
DDK安装指导.doc_第4页
DDK安装指导.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

博客地址:/zhchongyao/zhongchy安装环境: Windows 2003; 开发环境 vs2005到迅雷上下载 win2003 DDK iso 的文件下载Windows Server2003 SP1安装 iso 文件格式的 DDK安装Windows Server2003 SP15、安装DDK后,去/ 下载ddkwizard_setup_v1.2.0a、ddkbuild_bat.zip、ddkbuild_cmd.zip。6拷贝 DDKBUILD.bat 和 DDKBUILD.cmd 到DDK安装根目录,如我的是C:WinDDK.7. 将上述文件(DDKBUILD.bat 和 DDKBUILD.cmd )的路径添加到系统的path变量(右击我的电脑,系统属性/高级/环境变量/系统变量/path变量双击修改值)。8 根据你所安装的DDK的不同版本添加不同的变量到系统变量中。 右击我的电脑,系统属性/高级/环境变量/系统变量/新建: 2000 DDK则变量名为: W2KBASE XP DDK则变量名为: WXPBASE 2003 sp1 DDK则变量名为: WNETBASE 这里我的是WNETBASE(值为cWinDDK3790.1830)9、启动vs2005打开菜单中的工具选项,弹出选项对话框。选择左边的项目和解决方案VC+目录,在右边的显示以下内容的目录下拉列表中选择可执行文件,在下面列表框中添加上面DDKBuild.bat文件所在的路径(这里是C:WinDDK),同样设置包含文件和库文件设置可执行文件(c:WinDDK)设置包含文件(cWINDDK3790.1830incwnet)设置库文件(cWINDDK3790.1830libwneti386)6. 开始安装DDKWizard,在安装的最后一步你可以选择编辑ddkwizard的配置文件。7. 现在重新打开VC2008就会发现在新建项目里面有DDK Project的选项了,里面就可以建立驱动工程来编写驱动程序了。比较成功的安装方法链接:/wangyue4/archive/2009/12/15/5012845.aspx/hacker_wolf/blog/item/db00e00b0ac1ba990a7b82bd.html项目中试过这个:没有成功:/3. 将驱动程序的所有源文件加入项目中。新建DDK Project 之后修改SOURCE 文件:其中TARGETTYPE= 后面加DRIVER ;加入以下两行: DDKROOT=D:WINDDK2600; # 这里要和安装目录一样 INCLUDES=$(DDKROOT)inc; 加入 源文件 后还要在sources 文件里的SOURCES= 后面加上 源文件名 。比如:SOURCES=Helloworld.c/博客地址:/zhchongyao/版权所有,zhongchy程序调试成功后,也许会弹出 一个可执行文件的对话框,这时在文件的I386,下查到 tsadmin (你的可执行文件)。浏览指向,这时你就可以进行使用。5.设置完毕就可以打开VS2005了。新建-项目-可以看到有了个DDK project,选择Driver,根据选择选定需要的DDK。Finish6.项目属性-NMAKE-Included Search Path-添加C:WINDDK3790.1830incddkwxp 这里根据自己需求选择7.OK,F7吧。进入项目目录就能看到生成的objchk_wnet_x86目录以及里面的.sys了。over博客地址:/zhchongyao/zhongchy下面上官方文档:Getting Started The Microsoft WindowsServer2003Service Pack1 (SP1) Driver Development Kit (DDK) provides a driver development environment for Windows Server2003, WindowsXP, and Windows2000. The DDK provides additional driver-specific headers, libraries, sources, tools, and documentation that are used to develop drivers for Windows Server2003SP1. Legal Information This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. Information in this document is subject to change without notice and is provided for informational purposes only. The entire risk of the use or results of the use of this document remains with the user, and Microsoft Corporation makes no warranties, either express or implied. The names of companies, products, people, characters, and/or data mentioned herein are fictitious and are in no way intended to represent any real individual, company, product, or event, unless otherwise noted. Complying with all applicable copyright laws is the responsibility of the user. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Microsoft Corporation. ActiveSync, ActiveX, BackOffice, Direct3D, DirectAnimation, DirectDraw, DirectInput, DirectMusic, DirectPlay, DirectShow, DirectSound, DirectX, MSDN, Microsoft, MS-DOS, Outlook, Visual C+, Win32, Windows, Windows NT, Windows XP, and Windows Server 2003 are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company names mentioned herein may be the trademarks of their respective owners. 2005 Microsoft Corporation. All rights reserved. Introduction This document presents an overview and installation information for the Microsoft Windows Driver Development Kit (DDK) for Microsoft WindowsServer2003 Service Pack1 (SP1). Before installing the DDK, read through this document to determine whether you need to install optional DDK components and how to set up your systems for a trouble-free installation. This document contains the following topics: Installing the DDK Installing the Debuggers Verifying DDK Installation Information on the Microsoft Web Site Late-Breaking News Release Notes (Click here to read the Release Notes now!) There have been a number of changes to the Microsoft Windows Driver Development Kit (DDK). Some of these changes may affect driver compatibility among versions of Windows. As a result, after installing the DDK, it is important to read the release notes. For your convenience, the release notes can be accessed from the Start menu. Complete the following steps to access the release notes from the Start menu:1. On the taskbar, click Start, and then click All Programs.2. Point to Development Kits, point to Windows DDK, point to Help, and then click Release Notes.Installing the DDK To install the Microsoft Windows Driver Development Kit (DDK) for Microsoft Windows Server2003 Service Pack1 (SP1), you must be able to access the CD drive from Windows, either locally or through a network. A development computer that is running WindowsNT4.0, WindowsMillennium Edition (Me), Windows98, or Windows95 is not supported when developing drivers for Windows Server2003 SP1, WindowsXP, or Windows2000. Developing 16-bit drivers (for example, VxD and WindowsMe) is not supported on a Windows 64-bit platform. System RequirementsThe system requirements for using this DDK on a driver-development computer are: Windows Server2003 SP1, WindowsServer2003, WindowsXP SP1, WindowsXP, or Windows2000. CD drive or Internet access. A minimum of 128 megabytes (MB) of RAM (256 MB of RAM, or more, is recommended). A minimum of 910 MB of hard-disk space for a full installation. A maximum of 1.8 gigabytes (GB) of RAM might be required to compile all samples. The system requirements for using this DDK on a driver-testing computer are: Windows Server2003 SP1 for Windows Server2003 SP1 driver development. A minimum of 128 MB of RAM if you are running a free or retail build of, or 256 MB of RAM if you are running a checked build. Depending on the particular drivers loaded on the computer, checked builds may require only 128 MB of RAM. A second computer that is capable of running Windows Server2003 SP1, WindowsXP, or Windows2000 for kernel debugging of your under-development drivers. This second computer can be your driver-development system. DDK Installation Note:You must have administrator privileges to correctly install the DDK.Note:Do not install this DDK over previous versions of this or any other DDK. Improper installation of the DDK can cause the use of old and incorrect files, which will lead to unreliable results in any drivers that you develop.Note:The default installation path is x:WinDDK. The icons can be found at All ProgramsDevelopment KitsWindows . To install the DDK, complete the following steps: 1. Run the Setup.exe file from the CD-ROM. If you are installing the DDK on a computer with Windows Server2003SP1 or WindowsXP, when prompted “Would you like to open the file or save it to your computer?” click Open. If you are installing the DDK on a computer with Windows2000, when prompted What would you like to do with this file? click Run the program from its current location.2. To start installing the DDK, If installing on a Windows 2000 computer, answer Run the program from its current location to the question, which asks What would you like to do with this file? OR If installing on a Windows Server 2003 Service Pack 1 or Windows XP computer, answer Open to the question, which asks Would you like to open the file or save it to your computer? 3. Click Next. 4. Read the Software License Agreement, click Accept, and then click Next. 5. Select the installation path (it is suggested to use the path that is displayed), and then click Next. 6. Select the components that you would like to install, and then click Next. 7. Confirm that you want to install the DDK by verifying that the installation path is correct, and then click Next to install the kit. Note:On computers with large hard-disk sectors, such as FAT16 file systems, the setup program might miscalculate the amount of space needed to attempt an installation even though the space is not available.Installing the DebuggersDebugging Tools for Windows features WinDbg, a powerful debugger with a graphical interface that can debug both user-mode and kernel-mode code. Debugging Tools for Windows also includes the debuggers KD, NTSD, and CDB, and many additional tools. The documentation in Debugging Tools for Windows describes the use of these debuggers and includes tips for user-mode and kernel-mode debugging. Debugging Tools for Windows is available in three different versions: a 32-bit version, a native Intel Itanium version, and a native x64 version. The 32-bit version is appropriate for most users. If you are planning on debugging a user-mode application on an Itanium-based processor, you should install the Itanium version of the debuggers. If you are planning on debugging a user-mode application on an x64 processor, you should select the x64 version of the debuggers. The Itanium and x64 debuggers can be installed only on 64-bit versions of Windows. These debugging tools require approximately 25 MB of hard disk space. To obtain the most current version of Debugging Tools for Windows, visit the Microsoft Debugging Tools Web site. If it is not convenient to visit this site, you can install Debugging Tools for Windows directly from this CD, by choosing one of the following links: Install Debugging Tools for Windows (32-bit version) Install Debugging Tools for Windows (Itanium version) Install Debugging Tools for Windows (x64 version) Since the version of Debugging Tools for Windows on this CD may not be the most recent version, it is recommended that you only use these links if you cannot access the Web site.SymbolsThe new linker strips all debug information from the SYS file and moves the data into a PDB file. The PDB file should be copied to the symbols directory for debugging. Copying the SYS file will not provide debugging information.Verifying DDK Installation To verify that you have properly installed the Microsoft Windows Server2003Service Pack1 (SP1) Driver Development Kit (DDK), complete the following steps: 1. Start a Windows Server 2003 Checked Build Environment Command Prompt window: a. Click the Start button, and then click All Programs.b. Point to Development Kits, point to Windows DDK , point to Build Environments, and then point to Windows Server 2003.c. Cl

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论