summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Mao <[email protected]>2017-11-14 15:00:29 -0800
committerGitHub <[email protected]>2017-11-14 15:00:29 -0800
commit15c04641f956a2aa80bad8ae7d57f36674511fe6 (patch)
tree312dc2ee8d8a049751bee286abdef9dce53e12e3
parent5806794a284be000299769ff2c5acff637a39ded (diff)
parent17dc03314bff5be5f8c0670e9be496b36ed27c1c (diff)
Merge pull request #176 from NeoAdonis/dv-faildriver-wdm-move
Move DV-FailDriver-WDM sample
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/README.md (renamed from tools/sdv/samples/DV-FailDriver-WDM/README.md)0
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c (renamed from tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.c)0
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.h (renamed from tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.h)0
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.inf (renamed from tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.inf)3
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.rc (renamed from tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.rc)0
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/driver.h (renamed from tools/sdv/samples/DV-FailDriver-WDM/driver.h)0
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/driver/DV-FailDriver-WDM.sln32
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj145
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj.Filters39
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/public.h (renamed from tools/sdv/samples/DV-FailDriver-WDM/public.h)0
-rw-r--r--tools/dv/samples/DV-FailDriver-WDM/wmi.c (renamed from tools/sdv/samples/DV-FailDriver-WDM/wmi.c)0
11 files changed, 218 insertions, 1 deletions
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/README.md b/tools/dv/samples/DV-FailDriver-WDM/README.md
index 9851ff31..9851ff31 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/README.md
+++ b/tools/dv/samples/DV-FailDriver-WDM/README.md
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.c b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c
index f8c545d2..f8c545d2 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.c
+++ b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.c
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.h b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.h
index c70d53d8..c70d53d8 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.h
+++ b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.h
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.inf b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.inf
index 2cbcf3ed..ae8f3e5a 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.inf
+++ b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.inf
@@ -26,7 +26,7 @@ DefaultDestDir = 12
; ================= Device Install section =====================
[Manufacturer]
-%MSFT%=MSFT,NTx86, NTamd64, NTARM, NTARM64
+%ManufacturerString%=MSFT,NTx86, NTamd64, NTARM, NTARM64
; For XP and later
[MSFT.NTx86]
@@ -81,6 +81,7 @@ defect_toastmon.sys=1
1 = %DISK_NAME%,,,
[Strings]
+ManufacturerString = "Sample Manufacturer"
ClassName = "Sample Drivers"
Defect_ToastMon.SVCDESC = "Sample ToastMon Buggy Service"
Defect_ToastMon.DRVDESC = "Sample ToastMon Buggy Driver"
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.rc b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.rc
index 6ae8a2d6..6ae8a2d6 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/defect_toastmon.rc
+++ b/tools/dv/samples/DV-FailDriver-WDM/defect_toastmon.rc
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/driver.h b/tools/dv/samples/DV-FailDriver-WDM/driver.h
index 0fb84d92..0fb84d92 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/driver.h
+++ b/tools/dv/samples/DV-FailDriver-WDM/driver.h
diff --git a/tools/dv/samples/DV-FailDriver-WDM/driver/DV-FailDriver-WDM.sln b/tools/dv/samples/DV-FailDriver-WDM/driver/DV-FailDriver-WDM.sln
new file mode 100644
index 00000000..6c642b94
--- /dev/null
+++ b/tools/dv/samples/DV-FailDriver-WDM/driver/DV-FailDriver-WDM.sln
@@ -0,0 +1,32 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "defect_toastmon", ".\defect_toastmon.vcxproj", "{50D75FD5-F47F-4289-98ED-B4AF87F5074D}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Debug|x64.ActiveCfg = Debug|x64
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Debug|x64.Build.0 = Debug|x64
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Debug|x64.Deploy.0 = Debug|x64
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Debug|x86.ActiveCfg = Debug|Win32
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Debug|x86.Build.0 = Debug|Win32
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Debug|x86.Deploy.0 = Debug|Win32
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Release|x64.ActiveCfg = Release|x64
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Release|x64.Build.0 = Release|x64
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Release|x64.Deploy.0 = Release|x64
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Release|x86.ActiveCfg = Release|Win32
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Release|x86.Build.0 = Release|Win32
+ {50D75FD5-F47F-4289-98ED-B4AF87F5074D}.Release|x86.Deploy.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj b/tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj
new file mode 100644
index 00000000..3bbfc913
--- /dev/null
+++ b/tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj
@@ -0,0 +1,145 @@
+<?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>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{50D75FD5-F47F-4289-98ED-B4AF87F5074D}</ProjectGuid>
+ <RootNamespace>$(MSBuildProjectName)</RootNamespace>
+ <SupportsPackaging>false</SupportsPackaging>
+ <RequiresPackageProject>true</RequiresPackageProject>
+ <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
+ <Platform Condition="'$(Platform)' == ''">Win32</Platform>
+ <SampleGuid>{2DC3C871-C129-48AF-8AEF-21660E90E355}</SampleGuid>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <TargetVersion>Windows10</TargetVersion>
+ <UseDebugLibraries>False</UseDebugLibraries>
+ <DriverTargetPlatform>Desktop</DriverTargetPlatform>
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
+ <ConfigurationType>Driver</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <TargetVersion>Windows10</TargetVersion>
+ <UseDebugLibraries>True</UseDebugLibraries>
+ <DriverTargetPlatform>Desktop</DriverTargetPlatform>
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
+ <ConfigurationType>Driver</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <TargetVersion>Windows10</TargetVersion>
+ <UseDebugLibraries>False</UseDebugLibraries>
+ <DriverTargetPlatform>Desktop</DriverTargetPlatform>
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
+ <ConfigurationType>Driver</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <TargetVersion>Windows10</TargetVersion>
+ <UseDebugLibraries>True</UseDebugLibraries>
+ <DriverTargetPlatform>Desktop</DriverTargetPlatform>
+ <DriverType>WDM</DriverType>
+ <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
+ <ConfigurationType>Driver</ConfigurationType>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <PropertyGroup>
+ <OutDir>$(IntDir)</OutDir>
+ </PropertyGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
+ </ImportGroup>
+ <ItemGroup Label="WrappedTaskItems" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <TargetName>defect_toastmon</TargetName>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <TargetName>defect_toastmon</TargetName>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <TargetName>defect_toastmon</TargetName>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <TargetName>defect_toastmon</TargetName>
+ </PropertyGroup>
+ <ItemGroup>
+ <FilesToPackage Include="..\defect_toastmon.inf" />
+ </ItemGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <TreatWarningAsError>true</TreatWarningAsError>
+ <WarningLevel>Level4</WarningLevel>
+ <ExceptionHandling>
+ </ExceptionHandling>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <TreatWarningAsError>true</TreatWarningAsError>
+ <WarningLevel>Level4</WarningLevel>
+ <ExceptionHandling>
+ </ExceptionHandling>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <TreatWarningAsError>true</TreatWarningAsError>
+ <WarningLevel>Level4</WarningLevel>
+ <ExceptionHandling>
+ </ExceptionHandling>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <TreatWarningAsError>true</TreatWarningAsError>
+ <WarningLevel>Level4</WarningLevel>
+ <ExceptionHandling>
+ </ExceptionHandling>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="..\defect_toastmon.c" />
+ <ClCompile Include="..\wmi.c" />
+ <ResourceCompile Include="..\defect_toastmon.rc" />
+ </ItemGroup>
+ <ItemGroup>
+ <Inf Exclude="@(Inf)" Include="*.inf" />
+ <FilesToPackage Include="$(TargetPath)" Condition="'$(ConfigurationType)'=='Driver' or '$(ConfigurationType)'=='DynamicLibrary'" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Exclude="@(None)" Include="*.txt;*.htm;*.html" />
+ <None Exclude="@(None)" Include="*.ico;*.cur;*.bmp;*.dlg;*.rct;*.gif;*.jpg;*.jpeg;*.wav;*.jpe;*.tiff;*.tif;*.png;*.rc2" />
+ <None Exclude="@(None)" Include="*.def;*.bat;*.hpj;*.asmx" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Exclude="@(ClInclude)" Include="*.h;*.hpp;*.hxx;*.hm;*.inl;*.xsd" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+</Project> \ No newline at end of file
diff --git a/tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj.Filters b/tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj.Filters
new file mode 100644
index 00000000..54b3292a
--- /dev/null
+++ b/tools/dv/samples/DV-FailDriver-WDM/driver/defect_toastmon.vcxproj.Filters
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;*</Extensions>
+ <UniqueIdentifier>{33678E2A-4D37-4513-B6BC-82247B32F21A}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Header Files">
+ <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
+ <UniqueIdentifier>{FC4F9442-7A7D-4089-951C-730E92D24CB7}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Resource Files">
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms;man;xml</Extensions>
+ <UniqueIdentifier>{8848867A-B6EA-4C72-93B6-430DC2FE89D1}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Driver Files">
+ <Extensions>inf;inv;inx;mof;mc;</Extensions>
+ <UniqueIdentifier>{A8255629-05E3-46EC-8820-1F65B22797CF}</UniqueIdentifier>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <FilesToPackage Include="..\defect_toastmon.inf">
+ <Filter>Driver Files</Filter>
+ </FilesToPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\defect_toastmon.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\wmi.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="..\defect_toastmon.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/public.h b/tools/dv/samples/DV-FailDriver-WDM/public.h
index 462f28e2..462f28e2 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/public.h
+++ b/tools/dv/samples/DV-FailDriver-WDM/public.h
diff --git a/tools/sdv/samples/DV-FailDriver-WDM/wmi.c b/tools/dv/samples/DV-FailDriver-WDM/wmi.c
index ee856d59..ee856d59 100644
--- a/tools/sdv/samples/DV-FailDriver-WDM/wmi.c
+++ b/tools/dv/samples/DV-FailDriver-WDM/wmi.c