windows驅動環境配置vs2010+wdk7600


 

安裝wdk后  要勾選集成VSIX選項到vs里面,不然vs里面新建項目時候找不到windows Driver

 

 

最簡單的方式是安裝wdk7600+vs2010+VisualDDK-1.5.7

這三個軟件安裝好之后,可直接在vs2010新建項目中有一個VisualDDK,直接可生成相應的環境

 

 

以上是我配置方法,滴水視頻里有另外一種配置方法

新建Visual C++,選擇空項目

 

然后選生成,配置管理器

 

 

選擇新建

 

配置項目屬性

 

 

 

 

將以下代碼填入其中

<?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:\WinDDK\7600.16385.1\bin\x86;$(ExecutablePath)</ExecutablePath>
 
  </PropertyGroup>
 
  <PropertyGroup>
 
    <IncludePath>D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\ddk;D:\WinDDK\7600.16385.1\inc\crt;$(IncludePath)</IncludePath>
 
  </PropertyGroup>
 
  <PropertyGroup>
 
    <LibraryPath>D:\WinDDK\7600.16385.1\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>

修改紅色自己的路徑,win7改成自己要運行的系統

 

重啟vs2010,環境就配好了,之后就自己新建驅動文件並開始你的開發之路了

VisualDDK-1.5.7.exe 及一些配置文件在我的資源中

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM