您的位置:首页 > 其它

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: