找回密码
 立即注册→加入我们

QQ登录

只需一步,快速开始

搜索
热搜: 下载 VB C 实现 编写
查看: 3058|回复: 3

【配置】vs2010 ddk7600

[复制链接]
发表于 2017-3-20 16:42:18 | 显示全部楼层 |阅读模式

欢迎访问技术宅的结界,请注册或者登录吧。

您需要 登录 才可以下载或查看,没有账号?立即注册→加入我们

×
本帖最后由 Ayala 于 2017-3-20 18:51 编辑

vs2010 和 ddk安装过程略过 预定义符号 debug模式 DBG;_DEBUG;_DEBUG_;

新建一个空项目 新建文件

  1. #include <ntdef.h>
  2. #include <ntddk.h>

  3. NTSTATUS
  4. DriverEntry(IN PDRIVER_OBJECT DriverObject,IN PUNICODE_STRING RegistryPath)
  5. {
  6.         return 0;
  7. }
复制代码

右键 项目 属性
0000.PNG
在配置属性页中选择 配置管理器 建立一个新配置
0000.PNG
修改配置

0001.PNG

0007.PNG

Cl_0001.PNG

Cl_0001.PNG

Cl_0002.PNG

Cl_0003.PNG

Cl_0004.PNG

Cl_0005.PNG

Cl_0006.PNG

Cl_0007.PNG

Cl_0008.PNG

Cl_0009.PNG

Cl_00010.PNG

link0001.PNG

link0002.PNG

link0003.PNG

link0004.PNG

link0005.PNG

link0006.PNG

link0007.PNG

link0008.PNG

link0009.PNG

































fin.PNG


















测试
回复

使用道具 举报

 楼主| 发表于 2017-3-20 21:41:16 | 显示全部楼层
本帖最后由 Ayala 于 2017-3-21 09:00 编辑

default.vcxproj

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3.   <ItemGroup Label="ProjectConfigurations">
  4.     <ProjectConfiguration Include="Debug|Win32">
  5.       <Configuration>Debug</Configuration>
  6.       <Platform>Win32</Platform>
  7.     </ProjectConfiguration>
  8.     <ProjectConfiguration Include="Debug|x64">
  9.       <Configuration>Debug</Configuration>
  10.       <Platform>x64</Platform>
  11.     </ProjectConfiguration>
  12.     <ProjectConfiguration Include="Release|Win32">
  13.       <Configuration>Release</Configuration>
  14.       <Platform>Win32</Platform>
  15.     </ProjectConfiguration>
  16.     <ProjectConfiguration Include="Release|x64">
  17.       <Configuration>Release</Configuration>
  18.       <Platform>x64</Platform>
  19.     </ProjectConfiguration>
  20.     <ProjectConfiguration Include="sysDebug|Win32">
  21.       <Configuration>sysDebug</Configuration>
  22.       <Platform>Win32</Platform>
  23.     </ProjectConfiguration>
  24.     <ProjectConfiguration Include="sysDebug|x64">
  25.       <Configuration>sysDebug</Configuration>
  26.       <Platform>x64</Platform>
  27.     </ProjectConfiguration>
  28.     <ProjectConfiguration Include="sysRelease|Win32">
  29.       <Configuration>sysRelease</Configuration>
  30.       <Platform>Win32</Platform>
  31.     </ProjectConfiguration>
  32.     <ProjectConfiguration Include="sysRelease|x64">
  33.       <Configuration>sysRelease</Configuration>
  34.       <Platform>x64</Platform>
  35.     </ProjectConfiguration>
  36.   </ItemGroup>
  37.   <PropertyGroup Label="Globals">
  38.   </PropertyGroup>
  39.   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  40.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
  41.     <ConfigurationType>Application</ConfigurationType>
  42.     <UseDebugLibraries>true</UseDebugLibraries>
  43.   </PropertyGroup>
  44.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
  45.     <ConfigurationType>Application</ConfigurationType>
  46.     <UseDebugLibraries>true</UseDebugLibraries>
  47.   </PropertyGroup>
  48.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
  49.     <ConfigurationType>Application</ConfigurationType>
  50.     <UseDebugLibraries>false</UseDebugLibraries>
  51.   </PropertyGroup>
  52.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
  53.     <ConfigurationType>Application</ConfigurationType>
  54.     <UseDebugLibraries>false</UseDebugLibraries>
  55.   </PropertyGroup>
  56.   <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  57.     <UseOfMfc />
  58.   </PropertyGroup>
  59.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'" Label="Configuration">
  60.     <UseOfMfc />
  61.   </PropertyGroup>
  62.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'" Label="Configuration">
  63.     <UseOfMfc />
  64.   </PropertyGroup>
  65.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'" Label="Configuration">
  66.     <UseOfMfc />
  67.   </PropertyGroup>
  68.   <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  69.     <UseOfAtl />
  70.   </PropertyGroup>
  71.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'" Label="Configuration">
  72.     <UseOfAtl />
  73.   </PropertyGroup>
  74.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'" Label="Configuration">
  75.     <UseOfAtl />
  76.   </PropertyGroup>
  77.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'" Label="Configuration">
  78.     <UseOfAtl />
  79.   </PropertyGroup>
  80.   <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  81.     <CLRSupport />
  82.   </PropertyGroup>
  83.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'" Label="Configuration">
  84.     <CLRSupport />
  85.   </PropertyGroup>
  86.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'" Label="Configuration">
  87.     <CLRSupport />
  88.   </PropertyGroup>
  89.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'" Label="Configuration">
  90.     <CLRSupport />
  91.   </PropertyGroup>
  92.   <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  93.     <WholeProgramOptimization />
  94.   </PropertyGroup>
  95.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'" Label="Configuration">
  96.     <WholeProgramOptimization />
  97.   </PropertyGroup>
  98.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'" Label="Configuration">
  99.     <WholeProgramOptimization />
  100.   </PropertyGroup>
  101.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'" Label="Configuration">
  102.     <WholeProgramOptimization />
  103.   </PropertyGroup>
  104.   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  105.   <ImportGroup Label="ExtensionSettings">
  106.   </ImportGroup>
  107.   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  108.     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  109.   </ImportGroup>
  110.   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
  111.     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  112.   </ImportGroup>
  113.   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  114.     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  115.   </ImportGroup>
  116.   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
  117.     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  118.   </ImportGroup>
  119.   <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  120.     <Import Project="$(VSInstallDir)VC\VCWizards\default.props" />
  121.   </ImportGroup>
  122.   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'" Label="PropertySheets">
  123.     <Import Project="$(VSInstallDir)VC\VCWizards\default.props" />
  124.   </ImportGroup>
  125.   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'" Label="PropertySheets">
  126.     <Import Project="$(VSInstallDir)VC\VCWizards\default.props" />
  127.   </ImportGroup>
  128.   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'" Label="PropertySheets">
  129.     <Import Project="$(VSInstallDir)VC\VCWizards\default.props" />
  130.   </ImportGroup>
  131.   <PropertyGroup Label="UserMacros" />
  132.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  133.     <OutDir>$(SolutionDir)$(Configuration)\i386\</OutDir>
  134.   </PropertyGroup>
  135.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'">
  136.     <OutDir>$(SolutionDir)$(Configuration)\i386\</OutDir>
  137.   </PropertyGroup>
  138.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'">
  139.     <OutDir>$(SolutionDir)$(Configuration)\amd64\</OutDir>
  140.   </PropertyGroup>
  141.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'">
  142.     <OutDir>$(SolutionDir)$(Configuration)\amd64\</OutDir>
  143.   </PropertyGroup>
  144.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  145.     <IntDir>$(SolutionDir)$(Configuration)\i386\temp\</IntDir>
  146.   </PropertyGroup>
  147.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'">
  148.     <IntDir>$(SolutionDir)$(Configuration)\i386\temp\</IntDir>
  149.   </PropertyGroup>
  150.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'">
  151.     <IntDir>$(SolutionDir)$(Configuration)\amd64\temp\</IntDir>
  152.   </PropertyGroup>
  153.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'">
  154.     <IntDir>$(SolutionDir)$(Configuration)\amd64\temp\</IntDir>
  155.   </PropertyGroup>
  156.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  157.     <TargetExt>.sys</TargetExt>
  158.     <ExecutablePath>$(WINDDK)bin\x86\x86</ExecutablePath>
  159.     <IncludePath>$(WINDDK)inc;$(WINDDK)inc\crt;$(WINDDK)inc\api;$(WINDDK)inc\ddk;$(WINDDK)inc\wdf</IncludePath>
  160.     <ReferencePath />
  161.     <LibraryPath>$(WINDDK)lib\wxp\i386</LibraryPath>
  162.     <SourcePath />
  163.     <ExcludePath />
  164.     <GenerateManifest />
  165.   </PropertyGroup>
  166.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'">
  167.     <TargetExt>.sys</TargetExt>
  168.     <ExecutablePath>$(WINDDK)bin\x86\x86</ExecutablePath>
  169.     <IncludePath>$(WINDDK)inc;$(WINDDK)inc\crt;$(WINDDK)inc\api;$(WINDDK)inc\ddk;$(WINDDK)inc\wdf</IncludePath>
  170.     <ReferencePath />
  171.     <LibraryPath>$(WINDDK)lib\wxp\i386</LibraryPath>
  172.     <SourcePath />
  173.     <ExcludePath />
  174.     <GenerateManifest />
  175.   </PropertyGroup>
  176.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'">
  177.     <TargetExt>.sys</TargetExt>
  178.     <ExecutablePath>$(WINDDK)bin\x86\amd64</ExecutablePath>
  179.     <IncludePath>$(WINDDK)inc;$(WINDDK)inc\crt;$(WINDDK)inc\api;$(WINDDK)inc\ddk;$(WINDDK)inc\wdf</IncludePath>
  180.     <ReferencePath />
  181.     <LibraryPath>$(WINDDK)lib\win7\amd64</LibraryPath>
  182.     <SourcePath />
  183.     <ExcludePath />
  184.     <GenerateManifest />
  185.   </PropertyGroup>
  186.   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'">
  187.     <TargetExt>.sys</TargetExt>
  188.     <ExecutablePath>$(WINDDK)bin\x86\amd64</ExecutablePath>
  189.     <IncludePath>$(WINDDK)inc;$(WINDDK)inc\crt;$(WINDDK)inc\api;$(WINDDK)inc\ddk;$(WINDDK)inc\wdf</IncludePath>
  190.     <ReferencePath />
  191.     <LibraryPath>$(WINDDK)lib\win7\amd64</LibraryPath>
  192.     <SourcePath />
  193.     <ExcludePath />
  194.     <GenerateManifest />
  195.   </PropertyGroup>
  196.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  197.     <Link>
  198.       <AdditionalDependencies>ntoskrnl.lib;hal.lib</AdditionalDependencies>
  199.     </Link>
  200.   </ItemDefinitionGroup>
  201.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'">
  202.     <Link>
  203.       <AdditionalDependencies>ntoskrnl.lib;hal.lib</AdditionalDependencies>
  204.     </Link>
  205.   </ItemDefinitionGroup>
  206.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'">
  207.     <Link>
  208.       <AdditionalDependencies>ntoskrnl.lib;hal.lib</AdditionalDependencies>
  209.     </Link>
  210.   </ItemDefinitionGroup>
  211.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'">
  212.     <Link>
  213.       <AdditionalDependencies>ntoskrnl.lib;hal.lib</AdditionalDependencies>
  214.     </Link>
  215.   </ItemDefinitionGroup>
  216.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|Win32'">
  217.     <Link>
  218.       <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
  219.       <ManifestFile>
  220.       </ManifestFile>
  221.       <AllowIsolation>
  222.       </AllowIsolation>
  223.       <EnableUAC>
  224.       </EnableUAC>
  225.       <UACExecutionLevel>
  226.       </UACExecutionLevel>
  227.       <UACUIAccess>
  228.       </UACUIAccess>
  229.       <SubSystem>Native</SubSystem>
  230.       <Driver>Driver</Driver>
  231.       <ProfileGuidedDatabase>
  232.       </ProfileGuidedDatabase>
  233.       <IgnoreEmbeddedIDL>
  234.       </IgnoreEmbeddedIDL>
  235.       <TypeLibraryResourceID>
  236.       </TypeLibraryResourceID>
  237.       <EntryPointSymbol>DriverEntry</EntryPointSymbol>
  238.       <RandomizedBaseAddress>
  239.       </RandomizedBaseAddress>
  240.       <DataExecutionPrevention>
  241.       </DataExecutionPrevention>
  242.       <TurnOffAssemblyGeneration>
  243.       </TurnOffAssemblyGeneration>
  244.       <TargetMachine>MachineX86</TargetMachine>
  245.       <GenerateDebugInformation>true</GenerateDebugInformation>
  246.     </Link>
  247.     <ClCompile>
  248.       <PreprocessorDefinitions>_X86_;DBG=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  249.     </ClCompile>
  250.   </ItemDefinitionGroup>
  251.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|Win32'">
  252.     <Link>
  253.       <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
  254.       <ManifestFile>
  255.       </ManifestFile>
  256.       <AllowIsolation>
  257.       </AllowIsolation>
  258.       <EnableUAC>
  259.       </EnableUAC>
  260.       <UACExecutionLevel>
  261.       </UACExecutionLevel>
  262.       <UACUIAccess>
  263.       </UACUIAccess>
  264.       <SubSystem>Native</SubSystem>
  265.       <Driver>Driver</Driver>
  266.       <ProfileGuidedDatabase>
  267.       </ProfileGuidedDatabase>
  268.       <IgnoreEmbeddedIDL>
  269.       </IgnoreEmbeddedIDL>
  270.       <TypeLibraryResourceID>
  271.       </TypeLibraryResourceID>
  272.       <EntryPointSymbol>DriverEntry</EntryPointSymbol>
  273.       <RandomizedBaseAddress>
  274.       </RandomizedBaseAddress>
  275.       <DataExecutionPrevention>
  276.       </DataExecutionPrevention>
  277.       <TurnOffAssemblyGeneration>
  278.       </TurnOffAssemblyGeneration>
  279.       <TargetMachine>MachineX86</TargetMachine>
  280.       <SetChecksum>true</SetChecksum>
  281.     </Link>
  282.     <ClCompile>
  283.       <PreprocessorDefinitions>_X86_;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  284.     </ClCompile>
  285.   </ItemDefinitionGroup>
  286.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysDebug|x64'">
  287.     <Link>
  288.       <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
  289.       <ManifestFile>
  290.       </ManifestFile>
  291.       <AllowIsolation>
  292.       </AllowIsolation>
  293.       <EnableUAC>
  294.       </EnableUAC>
  295.       <UACExecutionLevel>
  296.       </UACExecutionLevel>
  297.       <UACUIAccess>
  298.       </UACUIAccess>
  299.       <SubSystem>Native</SubSystem>
  300.       <Driver>Driver</Driver>
  301.       <ProfileGuidedDatabase>
  302.       </ProfileGuidedDatabase>
  303.       <IgnoreEmbeddedIDL>
  304.       </IgnoreEmbeddedIDL>
  305.       <TypeLibraryResourceID>
  306.       </TypeLibraryResourceID>
  307.       <EntryPointSymbol>DriverEntry</EntryPointSymbol>
  308.       <RandomizedBaseAddress>
  309.       </RandomizedBaseAddress>
  310.       <DataExecutionPrevention>
  311.       </DataExecutionPrevention>
  312.       <TurnOffAssemblyGeneration>
  313.       </TurnOffAssemblyGeneration>
  314.       <GenerateDebugInformation>true</GenerateDebugInformation>
  315.     </Link>
  316.     <ClCompile>
  317.       <PreprocessorDefinitions>_AMD64_;_WIN64;_M_AMD64;DBG=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  318.     </ClCompile>
  319.   </ItemDefinitionGroup>
  320.   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='sysRelease|x64'">
  321.     <Link>
  322.       <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
  323.       <ManifestFile>
  324.       </ManifestFile>
  325.       <AllowIsolation>
  326.       </AllowIsolation>
  327.       <EnableUAC>
  328.       </EnableUAC>
  329.       <UACExecutionLevel>
  330.       </UACExecutionLevel>
  331.       <UACUIAccess>
  332.       </UACUIAccess>
  333.       <SubSystem>Native</SubSystem>
  334.       <Driver>Driver</Driver>
  335.       <ProfileGuidedDatabase>
  336.       </ProfileGuidedDatabase>
  337.       <IgnoreEmbeddedIDL>
  338.       </IgnoreEmbeddedIDL>
  339.       <TypeLibraryResourceID>
  340.       </TypeLibraryResourceID>
  341.       <EntryPointSymbol>DriverEntry</EntryPointSymbol>
  342.       <RandomizedBaseAddress>
  343.       </RandomizedBaseAddress>
  344.       <DataExecutionPrevention>
  345.       </DataExecutionPrevention>
  346.       <TurnOffAssemblyGeneration>
  347.       </TurnOffAssemblyGeneration>
  348.       <SetChecksum>true</SetChecksum>
  349.     </Link>
  350.     <ClCompile>
  351.       <PreprocessorDefinitions>_AMD64_;_WIN64;_M_AMD64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  352.     </ClCompile>
  353.   </ItemDefinitionGroup>
  354.   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  355.   <ImportGroup Label="ExtensionTargets">
  356.   </ImportGroup>
  357. </Project>
复制代码



$(VSInstallDir)VC\VCWizards\default.props
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3.   <PropertyGroup Label="UserMacros">
  4.     <WINDDK>C:\WinDDK\7600.16385.1\</WINDDK>
  5.   </PropertyGroup>
  6.   <PropertyGroup>
  7.     <OutDir />
  8.   </PropertyGroup>
  9.   <PropertyGroup>
  10.     <IntDir />
  11.   </PropertyGroup>
  12.   <PropertyGroup>
  13.     <TargetName>$(ProjectName)</TargetName>
  14.   </PropertyGroup>
  15.   <PropertyGroup>
  16.     <TargetExt>.sys</TargetExt>
  17.   </PropertyGroup>
  18.   <PropertyGroup>
  19.     <ExtensionsToDeleteOnClean>$(ExtensionsToDeleteOnClean)</ExtensionsToDeleteOnClean>
  20.     <IncludePath>$(WINDDK)inc;$(WINDDK)inc\crt;$(WINDDK)inc\api;$(WINDDK)inc\ddk;$(WINDDK)inc\wdf</IncludePath>
  21.   </PropertyGroup>
  22.   <ItemGroup>
  23.     <BuildMacro Include="WINDDK">
  24.       <Value>$(WINDDK)</Value>
  25.       <EnvironmentVariable>true</EnvironmentVariable>
  26.     </BuildMacro>
  27.   </ItemGroup>
  28.   <ItemDefinitionGroup>
  29.     <ClCompile>
  30.       <DebugInformationFormat>
  31.       </DebugInformationFormat>
  32.       <Optimization>
  33.       </Optimization>
  34.       <InlineFunctionExpansion>
  35.       </InlineFunctionExpansion>
  36.       <IntrinsicFunctions>
  37.       </IntrinsicFunctions>
  38.       <FavorSizeOrSpeed>
  39.       </FavorSizeOrSpeed>
  40.       <OmitFramePointers>
  41.       </OmitFramePointers>
  42.       <EnableFiberSafeOptimizations>
  43.       </EnableFiberSafeOptimizations>
  44.       <WholeProgramOptimization>
  45.       </WholeProgramOptimization>
  46.       <MinimalRebuild>
  47.       </MinimalRebuild>
  48.       <ExceptionHandling>
  49.       </ExceptionHandling>
  50.       <SmallerTypeCheck>
  51.       </SmallerTypeCheck>
  52.       <BasicRuntimeChecks>
  53.       </BasicRuntimeChecks>
  54.       <RuntimeLibrary>
  55.       </RuntimeLibrary>
  56.       <StructMemberAlignment>
  57.       </StructMemberAlignment>
  58.       <BufferSecurityCheck>
  59.       </BufferSecurityCheck>
  60.       <CallingConvention>StdCall</CallingConvention>
  61.       <CompileAs>CompileAsC</CompileAs>
  62.     </ClCompile>
  63.     <Link>
  64.       <EntryPointSymbol>DriverEntry</EntryPointSymbol>
  65.       <AdditionalDependencies>ntoskrnl.lib;hal.lib</AdditionalDependencies>
  66.       <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
  67.     </Link>
  68.   </ItemDefinitionGroup>
  69. </Project>
复制代码
回复 赞! 1 靠! 0

使用道具 举报

 楼主| 发表于 2017-3-20 16:43:08 | 显示全部楼层
本帖最后由 Ayala 于 2017-3-20 16:48 编辑

x64模式
0000.PNG
0001.PNG
0002.PNG
0003.PNG
0004.PNG
0005.PNG
fin.PNG







回复 赞! 靠!

使用道具 举报

 楼主| 发表于 2017-3-20 16:50:32 | 显示全部楼层
本帖最后由 Ayala 于 2017-3-20 20:02 编辑

Release 预处理器定义删除 _DEBUG
0001.PNG
x86
0001.PNG
0002.PNG
fin.PNG
x64
0001.PNG
0002.PNG
fin.PNG

操作成功之后 最后打开vs安装目录
打开
\Microsoft Visual Studio 10.0\VC\VCWizards\default.vcxproj
先备份下 之后按照之前操作 进行设置

回复 赞! 靠!

使用道具 举报

本版积分规则

QQ|Archiver|小黑屋|技术宅的结界 ( 滇ICP备16008837号 )|网站地图

GMT+8, 2024-11-21 21:02 , Processed in 0.043406 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表