提供属性配置文件一份:
http://pan.baidu.com/s/1iS1Ix
<?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>E:\WinDDK\7600.16385.1\bin\x86;$(ExecutablePath)</ExecutablePath> </PropertyGroup> <PropertyGroup> <IncludePath>E:\WinDDK\7600.16385.1\inc\api;E:\WinDDK\7600.16385.1\inc\crt;E:\WinDDK\7600.16385.1\inc\ddk;$(IncludePath)</IncludePath> </PropertyGroup> <PropertyGroup> <LibraryPath>E:\WinDDK\7600.16385.1\lib\wxp\i386;$(LibraryPath)</LibraryPath> <LinkIncremental>false</LinkIncremental> <IgnoreImportLibrary>true</IgnoreImportLibrary> <TargetExt>.sys</TargetExt> </PropertyGroup> <ItemDefinitionGroup> <Link> <OutputFile>$(OutDir)$(TargetName).sys</OutputFile> <AdditionalDependencies>ntoskrnl.lib;Hal.lib;wdm.lib;wdmsec.lib;wmilib.lib;ndis.lib;MSVCRT.LIB;LIBCMT.LIB;%(AdditionalDependencies)</AdditionalDependencies> <EnableUAC>false</EnableUAC> <GenerateDebugInformation>true</GenerateDebugInformation> <GenerateMapFile>true</GenerateMapFile> <MapFileName>$(TargetDir)$(TargetName).map</MapFileName> <SubSystem>Console</SubSystem> <Driver>Driver</Driver> <EntryPointSymbol>DriverEntry</EntryPointSymbol> <BaseAddress>0x10000</BaseAddress> <RandomizedBaseAddress> </RandomizedBaseAddress> <DataExecutionPrevention> </DataExecutionPrevention> </Link> <ClCompile> <PreprocessorDefinitions>_X86_;DBG</PreprocessorDefinitions> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <BufferSecurityCheck>false</BufferSecurityCheck> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> <CallingConvention>StdCall</CallingConvention> </ClCompile> </ItemDefinitionGroup> <ItemGroup /> </Project>