Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add templates #1112

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
# Display Kernel
/video/ @microsoft/display-kernel-devs

# Windows Driver Kit Templates
/templates/ @microsoft/driver-samples-maintainers

# Driver Development Supplemental Tools
/tools/ @microsoft/windows-driver-developers-supplemental-tools-admins

Expand Down
11 changes: 11 additions & 0 deletions exclusions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,14 @@ network\trans\WFPSampler,Debug|ARM64,,22621,Only NI: Only ARM: Fails to build on
prm,*,,22621,Only NI: Not supported on NI.
powerlimit\plclient,*,,22621,Only NI: Not supported on NI.
powerlimit\plpolicy,*,,22621,Only NI: Not supported on NI.
templates\driverpackage,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\emptyapplication,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\emptydll,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\kmdfempty,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\ndisfilter,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\umdf2empty,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\v4printdriver,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\wdmempty,*,,,Template intentionally not building. See .\templates\README.md for details.
templates\winusbinfpackage,*,,22621,Only NI: Template intentionally not building. See .\templates\README.md for details.
templates\xpsrenderfilter,*,,,Template intentionally not building. See .\templates\README.md for details.
tree,*,,,Missing headers
35 changes: 35 additions & 0 deletions templates/DriverPackage/DriverPackage.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34525.116
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DriverPackage", "DriverPackage\DriverPackage.vcxproj", "{C086A076-3596-46BD-8B43-CD3702B16E35}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C086A076-3596-46BD-8B43-CD3702B16E35}.Debug|ARM64.ActiveCfg = Debug|ARM64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Debug|ARM64.Build.0 = Debug|ARM64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Debug|ARM64.Deploy.0 = Debug|ARM64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Debug|x64.ActiveCfg = Debug|x64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Debug|x64.Build.0 = Debug|x64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Debug|x64.Deploy.0 = Debug|x64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Release|ARM64.ActiveCfg = Release|ARM64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Release|ARM64.Build.0 = Release|ARM64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Release|ARM64.Deploy.0 = Release|ARM64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Release|x64.ActiveCfg = Release|x64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Release|x64.Build.0 = Release|x64
{C086A076-3596-46BD-8B43-CD3702B16E35}.Release|x64.Deploy.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {79E70392-08F7-4CE7-A16C-DD8DF8C094B8}
EndGlobalSection
EndGlobal
118 changes: 118 additions & 0 deletions templates/DriverPackage/DriverPackage/DriverPackage.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<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|ARM64">
<Configuration>Debug</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM64">
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{C086A076-3596-46BD-8B43-CD3702B16E35}</ProjectGuid>
<TemplateGuid>{4605da2c-74a5-4865-98e1-152ef136825f}</TemplateGuid>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
<Configuration>Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">x64</Platform>
<RootNamespace>DriverPackage</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Utility</ConfigurationType>
<DriverType>Package</DriverType>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Utility</ConfigurationType>
<DriverType>Package</DriverType>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Utility</ConfigurationType>
<DriverType>Package</DriverType>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
<TargetVersion>Windows10</TargetVersion>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Utility</ConfigurationType>
<DriverType>Package</DriverType>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</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|x64'">
<DebuggerFlavor>DbgengRemoteDebugger</DebuggerFlavor>
<HardwareIdString />
<CommandLine />
<DeployFiles />
<EnableVerifier>False</EnableVerifier>
<AllDrivers>False</AllDrivers>
<VerifyProjectOutput>True</VerifyProjectOutput>
<VerifyDrivers />
<VerifyFlags>133563</VerifyFlags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<DebuggerFlavor>DbgengRemoteDebugger</DebuggerFlavor>
<HardwareIdString />
<CommandLine />
<DeployFiles />
<EnableVerifier>False</EnableVerifier>
<AllDrivers>False</AllDrivers>
<VerifyProjectOutput>True</VerifyProjectOutput>
<VerifyDrivers />
<VerifyFlags>133563</VerifyFlags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
<DebuggerFlavor>DbgengRemoteDebugger</DebuggerFlavor>
<HardwareIdString />
<CommandLine />
<DeployFiles />
<EnableVerifier>False</EnableVerifier>
<AllDrivers>False</AllDrivers>
<VerifyProjectOutput>True</VerifyProjectOutput>
<VerifyDrivers />
<VerifyFlags>133563</VerifyFlags>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<DebuggerFlavor>DbgengRemoteDebugger</DebuggerFlavor>
<HardwareIdString />
<CommandLine />
<DeployFiles />
<EnableVerifier>False</EnableVerifier>
<AllDrivers>False</AllDrivers>
<VerifyProjectOutput>True</VerifyProjectOutput>
<VerifyDrivers />
<VerifyFlags>133563</VerifyFlags>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Driver Files">
<UniqueIdentifier>{8E41214B-6785-4CFE-B992-037D68949A14}</UniqueIdentifier>
<Extensions>inf;inv;inx;mof;mc;</Extensions>
</Filter>
</ItemGroup>
</Project>
43 changes: 43 additions & 0 deletions templates/EmptyApplication/EmptyApplication.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34525.116
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EmptyApplication", "EmptyApplication\EmptyApplication.vcxproj", "{02AC6F94-7898-4F8E-9A20-ECBA9B462928}"
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
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|ARM.ActiveCfg = Debug|ARM
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|ARM.Build.0 = Debug|ARM
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|ARM64.ActiveCfg = Debug|ARM64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|ARM64.Build.0 = Debug|ARM64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|x64.ActiveCfg = Debug|x64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|x64.Build.0 = Debug|x64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|x86.ActiveCfg = Debug|Win32
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Debug|x86.Build.0 = Debug|Win32
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|ARM.ActiveCfg = Release|ARM
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|ARM.Build.0 = Release|ARM
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|ARM64.ActiveCfg = Release|ARM64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|ARM64.Build.0 = Release|ARM64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|x64.ActiveCfg = Release|x64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|x64.Build.0 = Release|x64
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|x86.ActiveCfg = Release|Win32
{02AC6F94-7898-4F8E-9A20-ECBA9B462928}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A71BCCFB-A3EC-4E9C-B64A-014BD4D05443}
EndGlobalSection
EndGlobal
Loading