0x01驱动开发环境配置

image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
#include "ntddk.h"

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject,PUNICODE_STRING RegistryPath) 
{ 
    return STATUS_UNSUCCESSFUL; 
}

image.png

DriverProperty.props 内容,需要修改winddk路径

<?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>C:\WinDDK\7600.16385.1\bin\x86;$(ExecutablePath)</ExecutablePath>

  </PropertyGroup>

  <PropertyGroup>

    <IncludePath>C:\WinDDK\7600.16385.1\inc\api;C:\WinDDK\7600.16385.1\inc\ddk;C:\WinDDK\7600.16385.1\inc\crt;$(IncludePath)</IncludePath>

  </PropertyGroup>

  <PropertyGroup>

    <LibraryPath>C:\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>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容