码迷,mamicode.com
首页 > 其他好文 > 详细

Vs2010 配置驱动开发环境

时间:2014-08-02 07:40:23      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   使用   os   strong   io   文件   

一直习惯VS2010开发环境,之前配过一次vs2010的驱动开发环境,重装系统后,又要重新配置,找了好几篇文章,配置都没成功,突然相到之前配置过成功过,直接将原来驱动程序的配置文件拿过来使用就可以了。

当然首先: 打开(生成-->配置管理器) 并新建一个名称为"Dirver"的解决方案配置 从此处复制设置:debug.

此时会在工程目录下成成一个配置文件。 将下面内容复制到配置文件中,关闭工程重新打开即可。

 

    1. <?xml version="1.0" encoding="utf-8"?>  
    2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
    3.   <ImportGroup Label="PropertySheets" />  
    4.   <PropertyGroup Label="UserMacros" />  
    5.   <PropertyGroup>  
    6.     <ExecutablePath>D:\WinDDK\7600.16385.1\bin\x86;$(ExecutablePath)</ExecutablePath>  
    7.   </PropertyGroup>  
    8.   <PropertyGroup>  
    9.     <IncludePath>D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\crt;$(IncludePath)</IncludePath>  
    10.   </PropertyGroup>  
    11.   <PropertyGroup>  
    12.     <LibraryPath>D:\WinDDK\7600.16385.1\lib\win7\i386;$(LibraryPath)</LibraryPath>  
    13.     <TargetExt>.sys</TargetExt>  
    14.     <LinkIncremental>false</LinkIncremental>  
    15.   </PropertyGroup>  
    16.   <ItemDefinitionGroup>  
    17.     <ClCompile>  
    18.       <PreprocessorDefinitions>_X86_;DBG</PreprocessorDefinitions>  
    19.       <CallingConvention>StdCall</CallingConvention>  
    20.     </ClCompile>  
    21.     <Link>  
    22.       <AdditionalDependencies>ntoskrnl.lib;wdm.lib;wdmsec.lib;wmilib.lib;ndis.lib;Hal.lib;MSVCRT.LIB;LIBCMT.LIB;%(AdditionalDependencies)</AdditionalDependencies>  
    23.     </Link>  
    24.     <Link>  
    25.       <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>  
    26.       <EnableUAC>false</EnableUAC>  
    27.       <SubSystem>Console</SubSystem>  
    28.       <EntryPointSymbol>DriverEntry</EntryPointSymbol>  
    29.       <BaseAddress>0x10000</BaseAddress>  
    30.       <RandomizedBaseAddress>  
    31.       </RandomizedBaseAddress>  
    32.       <DataExecutionPrevention>  
    33.       </DataExecutionPrevention>  
    34.       <GenerateDebugInformation>true</GenerateDebugInformation>  
    35.     </Link>  
    36.   </ItemDefinitionGroup>  
    37.   <ItemGroup />  
    38. </Project

Vs2010 配置驱动开发环境,布布扣,bubuko.com

Vs2010 配置驱动开发环境

标签:style   blog   http   使用   os   strong   io   文件   

原文地址:http://www.cnblogs.com/iasd923/p/3886392.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!