DDK安装指导

安装环境: Windows 2003; 开发环境 vs2005
到迅雷上下载 win2003 DDK iso 的文件
下载Windows Server 2003 SP1
安装 iso 文件格式的 DDK
安装Windows Server 2003 SP1
5、安装DDK后,去ddkwizard.assarbad/ 下载ddkwizard_setup_v1.2.0a、ddkbuild_bat.zip、ddkbuild_cmd.zip。
6拷贝 DDKBUILD.bat 和 d 到DDK安装根目录,如我的是C:WinDDK.
7. 将上述文件(DDKBUILD.bat 和 d )的路径添加到系统的path变量(右击我的电脑,系统属性/高级/环境变量/系统变量/path变量双击修改值)。
8 根据你所安装的DDK的不同版本添加不同的变量到系统变量中。硫化床
  右击我的电脑,系统属性/高级/环境变量/系统变量/新建:
  2000 DDK则变量名为: W2KBASE
  XP DDK则变量名为: WXPBASE
  2003 sp1 DDK则变量名为: WNETBASE
  这里我的是WNETBASE(值为c\WinDDK\3790.1830)
9、启动vs2005打开菜单中的工具——选项,弹出选项对话框。选择左边的项目和解决方案——VC++目录,在右边的显示以下内容的目录下拉列表中选择可执行文件,在下面列表框中添加上面DDKBuild.bat文件所在的路径(这里是C:\WinDDK),同样设置包含文件和库文件
设置可执行文件(c:WinDDK)
设置包含文件(c\WINDDK\3790.1830\inc\wnet)
设置库文件(c\WINDDK\3790.1830\lib\wnet\i386)
6. 开始安装DDKWizard,在安装的最后一步你可以选择编辑ddkwizard的配置文件。
7. 现在重新打开VC2008就会发现在新建项目里面有DDK Project的选项了,里面就可以建立驱动工程来编写驱动程序了。
比较成功的安装方法链接:
blog.csdn/wangyue4/archive/2009/12/15/5012845.aspx
hi.baidu/hacker_wolf/blog/item/db00e00b0ac1ba990a7b82bd.html
项目中试过这个:
directdraw没有成功:
//
3. 将驱动程序的所有源文件加入项目中。
新建DDK Project 之后修改SOURCE 文件:
其中TARGETTYPE= 后面加DRIVER ;
加入以下两行:
      DDKROOT=D:\WINDDK\2600;  # 这里要和安装目录一样
      INCLUDES=$(DDKROOT)\inc;
      加入[ 源文件] 后还要在sources 文件里的SOURCES= 后面加上[ 源文件名] 。比如:
SOURCES=Helloworld.c
//博客地址:wwwblogs/zhchongyao/
版权所有,zhongchy
程序调试成功后,也许会弹出 一个可执行文件的对话框,这时在文件的I386,下查到 tsadmin (你的可执行文件)。浏览指向,这时你就可以进行使用。
5.设置完毕就可以打开VS2005了。新建-项目-可以看到有了个DDK project,选择Driver,根据选择选定需要的DDK。Finish
6.项目属性-NMAKE-Included Search Path-添加C:\WINDDK\3790.1830\inc\ddk\wxp 这里根据自己需求选择
7.OK,F7吧。进入项目目录就能看到生成的objchk_wnet_x86目录以及里面的.sys了。
over
成官宝博客地址:wwwblogs/zhchongyao/
zhongchy
下面上官方文档:
Getting Started
The Microsoft石棉密封垫® Windows Server™ 2003 Service Pack 1 (SP1) Driver Development Kit (DDK) provides a driver development environment for Windows Server 2003, Windows® XP, and Windows 2000. The DDK provides additional driver-specific headers, libraries, sources, tools, and documentation that are used to develop drivers for Windows Server 2003 SP1.
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 applica
ble 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 Microsoftsma天线® Windows
® Driver Development Kit (DDK) for Microsoft Windows Server™ 2003 Service Pack 1 (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:

本文发布于:2024-09-20 16:37:19,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/336478.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:选择   变量   安装   项目   系统   文件   可执行文件
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议