VS2010中 配置WDK的方法其实很简单= =
2015-04-27 16:00
169 查看
属性管理器->右键项目名字|win32新建项目属性表然后 展开这个项目就有一个.props为后缀的文件把
下面的内容修改好 也就是路径改成你的WDK安装地址就行 然后 覆盖过去 重启就可以编译了
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<ExecutablePath>D:\wdk\bin\x86;$(ExecutablePath)</ExecutablePath>
</PropertyGroup>
<PropertyGroup>
<IncludePath>D:\wdk\inc\api;D:\wdk\inc\ddk;D:\wdk\inc\crt;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup>
<LibraryPath>D:\wdk\lib\win7\i386;$(LibraryPath)</LibraryPath>
<TargetExt>.sys</TargetExt>
<LinkIncremental>false</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>_X86_;DBG</PreprocessorDefinitions>
<CallingConvention>StdCall</CallingConvention>
<ExceptionHandling>false</ExceptionHandling>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>ntoskrnl.lib;wdm.lib;wdmsec.lib;wmilib.lib;ndis.lib;Hal.lib;MSVCRT.LIB;LIBCMT.LIB;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<Link>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<EnableUAC>false</EnableUAC>
<SubSystem>Native</SubSystem>
<EntryPointSymbol>DriverEntry</EntryPointSymbol>
<BaseAddress>0x10000</BaseAddress>
<RandomizedBaseAddress>
</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<GenerateDebugInformation>true</GenerateDebugInformation>
<Driver>Driver</Driver>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>
属性管理器->右键项目名字|win32新建项目属性表然后 展开这个项目就有一个.props为后缀的文件把
下面的内容修改好 也就是路径改成你的WDK安装地址就行 然后 覆盖过去 重启就可以编译了
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<ExecutablePath>D:\wdk\bin\x86;$(ExecutablePath)</ExecutablePath>
</PropertyGroup>
<PropertyGroup>
<IncludePath>D:\wdk\inc\api;D:\wdk\inc\ddk;D:\wdk\inc\crt;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup>
<LibraryPath>D:\wdk\lib\win7\i386;$(LibraryPath)</LibraryPath>
<TargetExt>.sys</TargetExt>
<LinkIncremental>false</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>_X86_;DBG</PreprocessorDefinitions>
<CallingConvention>StdCall</CallingConvention>
<ExceptionHandling>false</ExceptionHandling>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<CompileAs>Default</CompileAs>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<AdditionalDependencies>ntoskrnl.lib;wdm.lib;wdmsec.lib;wmilib.lib;ndis.lib;Hal.lib;MSVCRT.LIB;LIBCMT.LIB;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<Link>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<EnableUAC>false</EnableUAC>
<SubSystem>Native</SubSystem>
<EntryPointSymbol>DriverEntry</EntryPointSymbol>
<BaseAddress>0x10000</BaseAddress>
<RandomizedBaseAddress>
</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<GenerateDebugInformation>true</GenerateDebugInformation>
<Driver>Driver</Driver>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>
相关文章推荐
- VS2010中OpenGL环境的配置方法
- win7(32bit)、VS2010环境下配置OpenGL的方法
- Windows 7 + Visual 2010 + WDK 7600.16385.1 配置方法
- VS2010配置GLUT的方法
- VS2010中WCF配置web服务器上无法启动调试解决方法
- VS2010编译器下针对C#和C++的opencv的配置方法
- OpenCV2.4.7 之VS2010配置方法
- OpenCV 2 编译及在vs2010中配置方法
- Windows 7 + Visual 2010 + WDK 7600.16385.1 配置方法
- 请教winGDB+VS2010配置第三方库方法
- VS2010中配置C#Project不生成.vhost.exe和.pdb文件的方法
- win7和VS2010下配置OpenGL的方法
- VS2010中仅一次配置opencv的方法
- win7和VS2010下配置OpenGL的方法
- 学会VS2010开发OpenCV程序的一种配置方法
- VS2010中仅一次配置opencv的方法
- OpenCV 在win7 64 位系统VS2010下的配置方法及总结
- 用VS2010开发Android应用的配置方法
- VS2010 WDK7.60 配置驱动开发环境(DDK驱动开发 WDK驱动开发)
- VS2010中OpenCV的配置步骤(手动方法)