Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
夜猫逐梦
MyOpen
提交
c9549fde
M
MyOpen
项目概览
夜猫逐梦
/
MyOpen
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MyOpen
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c9549fde
编写于
5月 14, 2019
作者:
K
khz_df
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
驱动之HelloWorld
上级
48080d84
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
241 addition
and
0 deletion
+241
-0
course/WinDriver/HelloWorld/HelloWorld.sln
course/WinDriver/HelloWorld/HelloWorld.sln
+51
-0
course/WinDriver/HelloWorld/HelloWorld/HelloWorld.vcxproj
course/WinDriver/HelloWorld/HelloWorld/HelloWorld.vcxproj
+146
-0
course/WinDriver/HelloWorld/HelloWorld/HelloWorld.vcxproj.filters
...inDriver/HelloWorld/HelloWorld/HelloWorld.vcxproj.filters
+26
-0
course/WinDriver/HelloWorld/HelloWorld/main.c
course/WinDriver/HelloWorld/HelloWorld/main.c
+18
-0
未找到文件。
course/WinDriver/HelloWorld/HelloWorld.sln
0 → 100644
浏览文件 @
c9549fde
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.572
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloWorld", "HelloWorld\HelloWorld.vcxproj", "{00800425-FD39-46C9-8950-8ACC78A4DE26}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|ARM.ActiveCfg = Debug|ARM
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|ARM.Build.0 = Debug|ARM
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|ARM.Deploy.0 = Debug|ARM
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|ARM64.ActiveCfg = Debug|ARM64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|ARM64.Build.0 = Debug|ARM64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|ARM64.Deploy.0 = Debug|ARM64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|x64.ActiveCfg = Debug|x64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|x64.Build.0 = Debug|x64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|x64.Deploy.0 = Debug|x64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|x86.ActiveCfg = Debug|Win32
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|x86.Build.0 = Debug|Win32
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Debug|x86.Deploy.0 = Debug|Win32
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|ARM.ActiveCfg = Release|ARM
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|ARM.Build.0 = Release|ARM
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|ARM.Deploy.0 = Release|ARM
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|ARM64.ActiveCfg = Release|ARM64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|ARM64.Build.0 = Release|ARM64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|ARM64.Deploy.0 = Release|ARM64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|x64.ActiveCfg = Release|x64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|x64.Build.0 = Release|x64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|x64.Deploy.0 = Release|x64
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|x86.ActiveCfg = Release|Win32
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|x86.Build.0 = Release|Win32
{00800425-FD39-46C9-8950-8ACC78A4DE26}.Release|x86.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1D46AEE7-2413-457A-84D8-271E3A9E359F}
EndGlobalSection
EndGlobal
course/WinDriver/HelloWorld/HelloWorld/HelloWorld.vcxproj
0 → 100644
浏览文件 @
c9549fde
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"12.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ProjectConfiguration
Include=
"Debug|Win32"
>
<Configuration>
Debug
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|Win32"
>
<Configuration>
Release
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Debug|x64"
>
<Configuration>
Debug
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|x64"
>
<Configuration>
Release
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Debug|ARM"
>
<Configuration>
Debug
</Configuration>
<Platform>
ARM
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|ARM"
>
<Configuration>
Release
</Configuration>
<Platform>
ARM
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Debug|ARM64"
>
<Configuration>
Debug
</Configuration>
<Platform>
ARM64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|ARM64"
>
<Configuration>
Release
</Configuration>
<Platform>
ARM64
</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
{00800425-FD39-46C9-8950-8ACC78A4DE26}
</ProjectGuid>
<TemplateGuid>
{dd38f7fc-d7bd-488b-9242-7d8754cde80d}
</TemplateGuid>
<TargetFrameworkVersion>
v4.5
</TargetFrameworkVersion>
<MinimumVisualStudioVersion>
12.0
</MinimumVisualStudioVersion>
<Configuration>
Debug
</Configuration>
<Platform
Condition=
"'$(Platform)' == ''"
>
Win32
</Platform>
<RootNamespace>
HelloWorld
</RootNamespace>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.Default.props"
/>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<TargetVersion>
Windows10
</TargetVersion>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<TargetVersion>
Windows10
</TargetVersion>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
Label=
"Configuration"
>
<TargetVersion>
Windows7
</TargetVersion>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
<DriverTargetPlatform>
Desktop
</DriverTargetPlatform>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
Label=
"Configuration"
>
<TargetVersion>
Windows10
</TargetVersion>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|ARM'"
Label=
"Configuration"
>
<TargetVersion>
Windows10
</TargetVersion>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|ARM'"
Label=
"Configuration"
>
<TargetVersion>
Windows10
</TargetVersion>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|ARM64'"
Label=
"Configuration"
>
<TargetVersion>
Windows10
</TargetVersion>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|ARM64'"
Label=
"Configuration"
>
<TargetVersion>
Windows10
</TargetVersion>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
WindowsKernelModeDriver10.0
</PlatformToolset>
<ConfigurationType>
Driver
</ConfigurationType>
<DriverType>
WDM
</DriverType>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<ImportGroup
Label=
"ExtensionSettings"
>
</ImportGroup>
<ImportGroup
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
</ImportGroup>
<PropertyGroup
Label=
"UserMacros"
/>
<PropertyGroup
/>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
<EnableInf2cat>
false
</EnableInf2cat>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|ARM'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|ARM'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|ARM64'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|ARM64'"
>
<DebuggerFlavor>
DbgengKernelDebugger
</DebuggerFlavor>
</PropertyGroup>
<ItemGroup>
<FilesToPackage
Include=
"$(TargetPath)"
/>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"main.c"
/>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
</Project>
\ No newline at end of file
course/WinDriver/HelloWorld/HelloWorld/HelloWorld.vcxproj.filters
0 → 100644
浏览文件 @
c9549fde
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup>
<Filter
Include=
"Source Files"
>
<UniqueIdentifier>
{4FC737F1-C7A5-4376-A066-2A32D752A2FF}
</UniqueIdentifier>
<Extensions>
cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
</Extensions>
</Filter>
<Filter
Include=
"Header Files"
>
<UniqueIdentifier>
{93995380-89BD-4b04-88EB-625FBE52EBFB}
</UniqueIdentifier>
<Extensions>
h;hpp;hxx;hm;inl;inc;xsd
</Extensions>
</Filter>
<Filter
Include=
"Resource Files"
>
<UniqueIdentifier>
{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
</UniqueIdentifier>
<Extensions>
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
</Extensions>
</Filter>
<Filter
Include=
"Driver Files"
>
<UniqueIdentifier>
{8E41214B-6785-4CFE-B992-037D68949A14}
</UniqueIdentifier>
<Extensions>
inf;inv;inx;mof;mc;
</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"main.c"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
course/WinDriver/HelloWorld/HelloWorld/main.c
0 → 100644
浏览文件 @
c9549fde
#include <ntifs.h>
//提供一个卸载函数,让程序能卸载,如果没有这个函数,驱动将不能卸载。
VOID
UnDriver
(
PDRIVER_OBJECT
driver
)
{
UNREFERENCED_PARAMETER
(
driver
);
KdPrint
((
"UnDriver.
\n
"
));
}
//入口函数,相当于main。
NTSTATUS
DriverEntry
(
PDRIVER_OBJECT
driver
,
PUNICODE_STRING
reg_path
)
{
UNREFERENCED_PARAMETER
(
driver
);
UNREFERENCED_PARAMETER
(
reg_path
);
KdPrint
((
"Hello World!
\n
"
));
driver
->
DriverUnload
=
UnDriver
;
return
STATUS_SUCCESS
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录