下载地址:
http://www.microsoft.com/whdc/DevTools/ddk/default.mspx
假如要开发一个for windows 2003的驱动 就下载
http://download.microsoft.com/download/9/0/f/90f019ac-8243-48d3-91cf-81fc4093ecfd/1830_usa_ddk.iso
然后在c盘根目录建立一个mydirver目录
创建一个mydirver.c源文件
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/ContractedBlock.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/ContractedBlock.gif)
![](https://www.cnblogs.com/Images/dot.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
然后在该目录下创建一个SOURCES文件 文件名不能错 大写 无后缀
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
然后在该目录下创建一个MAKEFILE文件 同样文件名大写 不能有后缀
![](/Images/OutliningIndicators/None.gif)
OK,把DDK安装好
「开始」菜单\程序\Development Kits\Windows DDK 3790.1830\Build Environments\Windows Server 2003\Windows Server 2003 Checked x86 Build Environment.lnk
然后进入mydriver目录 输入build进行构建
如果没有提示错误的话,该驱动程序会生成成功
mydriver\objchk_wnet_x86\i386\MYDRIVER.sys
这个就是我们创建的简单驱动程序