zoukankan      html  css  js  c++  java
  • VS2010+WDK开发环境搭建最简易方法

    这是目前编译驱动程序,开发驱动程序最方便、最亲切、最自然的方法。

    1、制作一个文本文件,(名称如:wdkproperty.props);

    1.5、在VS2010中新建空项目,配置configuration manager,添加new-debug->wdk;在project->propertis相应wdk添加新:wdkproperty.props;

    2、将你制作好的wdkproperty.props放入你的project相应目录内替换掉;

    3、configuration manager选择wdk,项目即可直接编译成功,.sys文件出来了;

    4、注意生成目录路径;

    5、注意:我的WDK安装在D:DDK7600

    wdkproperty.props

     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:DDK7600inx86;$(ExecutablePath)</ExecutablePath>
     7   </PropertyGroup>
     8   <PropertyGroup>
     9     <IncludePath>D:DDK7600incapi;D:DDK7600incddk;D:DDK7600inccrt;$(IncludePath)</IncludePath>
    10   </PropertyGroup>
    11   <PropertyGroup>
    12     <LibraryPath>D:DDK7600libwxpi386;$(LibraryPath)</LibraryPath>
    13     <TargetExt>.sys</TargetExt>
    14     <LinkIncremental>false</LinkIncremental>
    15     <GenerateManifest>false</GenerateManifest>
    16   </PropertyGroup>
    17   <ItemDefinitionGroup>
    18     <ClCompile>
    19       <PreprocessorDefinitions>_X86_;DBG</PreprocessorDefinitions>
    20       <CallingConvention>StdCall</CallingConvention>
    21       <ExceptionHandling>false</ExceptionHandling>
    22       <BasicRuntimeChecks>Default</BasicRuntimeChecks>
    23       <BufferSecurityCheck>false</BufferSecurityCheck>
    24       <CompileAs>Default</CompileAs>
    25       <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
    26       <AssemblerOutput>All</AssemblerOutput>
    27     </ClCompile>
    28     <Link>
    29       <AdditionalDependencies>ntoskrnl.lib;wdm.lib;wdmsec.lib;wmilib.lib;ndis.lib;Hal.lib;MSVCRT.LIB;LIBCMT.LIB;%(AdditionalDependencies)</AdditionalDependencies>
    30     </Link>
    31     <Link>
    32       <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
    33       <EnableUAC>false</EnableUAC>
    34       <SubSystem>Native</SubSystem>
    35       <EntryPointSymbol>DriverEntry</EntryPointSymbol>
    36       <BaseAddress>0x10000</BaseAddress>
    37       <RandomizedBaseAddress>
    38       </RandomizedBaseAddress>
    39       <DataExecutionPrevention>
    40       </DataExecutionPrevention>
    41       <GenerateDebugInformation>true</GenerateDebugInformation>
    42       <Driver>Driver</Driver>
    43     </Link>
    44   </ItemDefinitionGroup>
    45   <ItemGroup />
    46 </Project>
    /***********************************************

    看书看原版,原汁原味。

    不会英文?没关系,硬着头皮看下去慢慢熟练,才会有真正收获。

    没有原书,也要网上找PDF来看。

    网上的原版资料多了去了,下载东西也到原始下载点去看看。

    你会知其所以然,呵呵。

    ***********************************************/

  • 相关阅读:
    区间DP入门
    Prime Permutation(思维好题 )
    小字辈 (bfs好题)
    博弈论小结之尼姆博弈
    Hometask
    Lucky Sum (dfs打表)
    对称博弈
    尼姆博弈
    莫队算法 ( MO's algorithm )
    Codeforces 988D Points and Powers of Two ( 思维 || 二的幂特点 )
  • 原文地址:https://www.cnblogs.com/dpblue/p/4803643.html
Copyright © 2011-2022 走看看