Skip to content

Commit

Permalink
Windows 10 future version - February 2019 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnewthing committed Feb 7, 2019
2 parents 978355c + d0e9bc9 commit b8663d8
Show file tree
Hide file tree
Showing 298 changed files with 11,134 additions and 2,043 deletions.
2 changes: 2 additions & 0 deletions Samples/BackgroundTransfer/cpp/Tasks/CompletionGroupTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ BackgroundDownloader^ CompletionGroupTask::CreateBackgroundDownloader()

builder->SetTrigger(completionGroup->Trigger);

// The system automatically unregisters the BackgroundTransferCompletionGroup task when it triggers.
// You do not need to unregister it explicitly.
BackgroundTaskRegistration^ taskRegistration = builder->Register();

BackgroundDownloader^ downloader = ref new BackgroundDownloader(completionGroup);
Expand Down
2 changes: 2 additions & 0 deletions Samples/BackgroundTransfer/cs/Tasks/CompletionGroupTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public static BackgroundDownloader CreateBackgroundDownloader()
builder.TaskEntryPoint = "Tasks.CompletionGroupTask";
builder.SetTrigger(completionGroup.Trigger);

// The system automatically unregisters the BackgroundTransferCompletionGroup task when it triggers.
// You do not need to unregister it explicitly.
BackgroundTaskRegistration taskRegistration = builder.Register();

BackgroundDownloader downloader = new BackgroundDownloader(completionGroup);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
var builder = new Windows.ApplicationModel.Background.BackgroundTaskBuilder();
builder.taskEntryPoint = taskEntryPoint;
builder.setTrigger(completionGroup.trigger);

// The system automatically unregisters the BackgroundTransferCompletionGroup task when it triggers.
// You do not need to unregister it explicitly.
var taskRegistration = builder.register();

var downloader = new Windows.Networking.BackgroundTransfer.BackgroundDownloader(completionGroup);
Expand Down
4 changes: 4 additions & 0 deletions Samples/BackgroundTransfer/vb/Tasks/CompletionGroupTask.vb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ Namespace Global.Tasks
Dim builder As BackgroundTaskBuilder = New BackgroundTaskBuilder()
builder.TaskEntryPoint = "Tasks.CompletionGroupTask"
builder.SetTrigger(completionGroup.Trigger)

' The system automatically unregisters the BackgroundTransferCompletionGroup task when it triggers.
' You do not need to unregister it explicitly.
Dim taskRegistration As BackgroundTaskRegistration = builder.Register()

Dim downloader As BackgroundDownloader = New BackgroundDownloader(completionGroup)
Return downloader
End Function
Expand Down
43 changes: 43 additions & 0 deletions Samples/BluetoothLE/cppwinrt/BluetoothLE.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 15
VisualStudioVersion = 15.0.28307.168
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BluetoothLE", "BluetoothLE.vcxproj", "{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|ARM.ActiveCfg = Debug|ARM
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|ARM.Build.0 = Debug|ARM
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|ARM.Deploy.0 = Debug|ARM
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|x64.ActiveCfg = Debug|x64
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|x64.Build.0 = Debug|x64
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|x64.Deploy.0 = Debug|x64
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|x86.ActiveCfg = Debug|Win32
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|x86.Build.0 = Debug|Win32
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Debug|x86.Deploy.0 = Debug|Win32
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|ARM.ActiveCfg = Release|ARM
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|ARM.Build.0 = Release|ARM
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|ARM.Deploy.0 = Release|ARM
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|x64.ActiveCfg = Release|x64
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|x64.Build.0 = Release|x64
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|x64.Deploy.0 = Release|x64
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|x86.ActiveCfg = Release|Win32
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|x86.Build.0 = Release|Win32
{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}.Release|x86.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B7CCE8FC-0342-4D8C-AA55-C89A6673C44A}
EndGlobalSection
EndGlobal
211 changes: 211 additions & 0 deletions Samples/BluetoothLE/cppwinrt/BluetoothLE.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.props')" />
<PropertyGroup Label="Globals">
<MinimalCoreWin>true</MinimalCoreWin>
<ProjectGuid>{6BA13EC4-5ACC-4B1A-99B4-6FC4D67C7849}</ProjectGuid>
<ProjectName>BluetoothLE</ProjectName>
<RootNamespace>SDKTemplate</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>$(WindowsTargetPlatformVersion)</WindowsTargetPlatformMinVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<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>
<IncludePath>$(VC_IncludePath);$(UniversalCRT_IncludePath);$(WindowsSDK_IncludePath);..\..\..\SharedContent\cppwinrt</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
<WarningLevel>Level4</WarningLevel>
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\..\..\SharedContent\cppwinrt\App.h">
<DependentUpon>..\..\..\SharedContent\xaml\App.xaml</DependentUpon>
</ClInclude>
<ClInclude Include="..\..\..\SharedContent\cppwinrt\MainPage.h">
<DependentUpon>..\..\..\SharedContent\xaml\MainPage.xaml</DependentUpon>
</ClInclude>
<ClInclude Include="BluetoothLEAttributeDisplay.h" />
<ClInclude Include="BluetoothLEDeviceDisplay.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="PresentationFormats.h" />
<ClInclude Include="SampleConfiguration.h" />
<ClInclude Include="Scenario1_Discovery.h">
<DependentUpon>..\shared\Scenario1_Discovery.xaml</DependentUpon>
</ClInclude>
<ClInclude Include="Scenario2_Client.h">
<DependentUpon>..\shared\Scenario2_Client.xaml</DependentUpon>
</ClInclude>
<ClInclude Include="Scenario3_ServerForeground.h">
<DependentUpon>..\shared\Scenario3_ServerForeground.xaml</DependentUpon>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="..\..\..\SharedContent\xaml\App.xaml">
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="..\..\..\SharedContent\xaml\MainPage.xaml">
<SubType>Designer</SubType>
</Page>
<Page Include="..\shared\Scenario1_Discovery.xaml" />
<Page Include="..\shared\Scenario2_Client.xaml" />
<Page Include="..\shared\Scenario3_ServerForeground.xaml" />
<Page Include="..\..\..\SharedContent\xaml\Styles.xaml">
<Link>Styles\Styles.xaml</Link>
</Page>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\SharedContent\cppwinrt\App.cpp">
<DependentUpon>..\..\..\SharedContent\xaml\App.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="..\..\..\SharedContent\cppwinrt\MainPage.cpp">
<DependentUpon>..\..\..\SharedContent\xaml\MainPage.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="BluetoothLEAttributeDisplay.cpp">
<DependentUpon>BluetoothLEAttributeDisplay.h</DependentUpon>
</ClCompile>
<ClCompile Include="BluetoothLEDeviceDisplay.cpp">
<DependentUpon>BluetoothLEDeviceDisplay.h</DependentUpon>
</ClCompile>
<ClCompile Include="pch.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
<DependentUpon>pch.h</DependentUpon>
</ClCompile>
<ClCompile Include="SampleConfiguration.cpp">
<DependentUpon>SampleConfiguration.h</DependentUpon>
</ClCompile>
<ClCompile Include="Scenario1_Discovery.cpp">
<DependentUpon>..\shared\Scenario1_Discovery.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="Scenario2_Client.cpp">
<DependentUpon>..\shared\Scenario2_Client.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="Scenario3_ServerForeground.cpp">
<DependentUpon>..\shared\Scenario3_ServerForeground.xaml</DependentUpon>
</ClCompile>
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
</ItemGroup>
<ItemGroup>
<Midl Include="..\..\..\SharedContent\cppwinrt\App.idl">
<DependentUpon>..\..\..\SharedContent\xaml\App.xaml</DependentUpon>
</Midl>
<Midl Include="..\..\..\SharedContent\cppwinrt\MainPage.idl">
<DependentUpon>..\..\..\SharedContent\xaml\MainPage.xaml</DependentUpon>
</Midl>
<Midl Include="DisplayHelpers.idl" />
<Midl Include="Scenario1_Discovery.idl">
<DependentUpon>..\shared\Scenario1_Discovery.xaml</DependentUpon>
</Midl>
<Midl Include="Scenario2_Client.idl">
<DependentUpon>..\shared\Scenario2_Client.xaml</DependentUpon>
</Midl>
<Midl Include="Scenario3_ServerForeground.idl">
<DependentUpon>..\shared\Scenario3_ServerForeground.xaml</DependentUpon>
</Midl>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Image Include="..\..\..\SharedContent\media\microsoft-sdk.png">
<Link>Assets\microsoft-sdk.png</Link>
</Image>
<Image Include="..\..\..\SharedContent\media\smalltile-sdk.png">
<Link>Assets\smallTile-sdk.png</Link>
</Image>
<Image Include="..\..\..\SharedContent\media\splash-sdk.png">
<Link>Assets\splash-sdk.png</Link>
</Image>
<Image Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Link>Assets\squareTile-sdk.png</Link>
</Image>
<Image Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Link>Assets\storeLogo-sdk.png</Link>
</Image>
<Image Include="..\..\..\SharedContent\media\tile-sdk.png">
<Link>Assets\tile-sdk.png</Link>
</Image>
<Image Include="..\..\..\SharedContent\media\windows-sdk.png">
<Link>Assets\windows-sdk.png</Link>
</Image>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.props'))" />
<Error Condition="!Exists('packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Windows.CppWinRT.1.0.190109.2\build\native\Microsoft.Windows.CppWinRT.targets'))" />
</Target>
</Project>
80 changes: 80 additions & 0 deletions Samples/BluetoothLE/cppwinrt/BluetoothLE.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Assets">
<UniqueIdentifier>4416d50a-7676-4d0a-9b2c-91ff70c6047f</UniqueIdentifier>
<Extensions>bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<Page Include="..\..\..\SharedContent\xaml\Styles.xaml" />
<Page Include="..\..\..\SharedContent\xaml\MainPage.xaml" />
<Page Include="..\shared\Scenario1_Discovery.xaml" />
<Page Include="..\shared\Scenario2_Client.xaml" />
<Page Include="..\shared\Scenario3_ServerForeground.xaml" />
</ItemGroup>
<ItemGroup>
<Midl Include="..\..\..\SharedContent\cppwinrt\App.idl" />
<Midl Include="..\..\..\SharedContent\cppwinrt\MainPage.idl" />
<Midl Include="Scenario1_Discovery.idl" />
<Midl Include="DisplayHelpers.idl" />
<Midl Include="Scenario2_Client.idl" />
<Midl Include="Scenario3_ServerForeground.idl" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="pch.cpp" />
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
<ClCompile Include="SampleConfiguration.cpp" />
<ClCompile Include="..\..\..\SharedContent\cppwinrt\App.cpp" />
<ClCompile Include="..\..\..\SharedContent\cppwinrt\MainPage.cpp" />
<ClCompile Include="Scenario1_Discovery.cpp" />
<ClCompile Include="BluetoothLEAttributeDisplay.cpp" />
<ClCompile Include="BluetoothLEDeviceDisplay.cpp" />
<ClCompile Include="Scenario2_Client.cpp" />
<ClCompile Include="Scenario3_ServerForeground.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="pch.h" />
<ClInclude Include="SampleConfiguration.h" />
<ClInclude Include="..\..\..\SharedContent\cppwinrt\App.h" />
<ClInclude Include="..\..\..\SharedContent\cppwinrt\MainPage.h" />
<ClInclude Include="Scenario1_Discovery.h" />
<ClInclude Include="BluetoothLEAttributeDisplay.h" />
<ClInclude Include="BluetoothLEDeviceDisplay.h" />
<ClInclude Include="Scenario2_Client.h" />
<ClInclude Include="Scenario3_ServerForeground.h" />
<ClInclude Include="PresentationFormats.h" />
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest" />
</ItemGroup>
<ItemGroup>
<Image Include="..\..\..\SharedContent\media\microsoft-sdk.png">
<Filter>Assets</Filter>
</Image>
<Image Include="..\..\..\SharedContent\media\smalltile-sdk.png">
<Filter>Assets</Filter>
</Image>
<Image Include="..\..\..\SharedContent\media\splash-sdk.png">
<Filter>Assets</Filter>
</Image>
<Image Include="..\..\..\SharedContent\media\squaretile-sdk.png">
<Filter>Assets</Filter>
</Image>
<Image Include="..\..\..\SharedContent\media\storelogo-sdk.png">
<Filter>Assets</Filter>
</Image>
<Image Include="..\..\..\SharedContent\media\tile-sdk.png">
<Filter>Assets</Filter>
</Image>
<Image Include="..\..\..\SharedContent\media\windows-sdk.png">
<Filter>Assets</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="..\..\..\SharedContent\xaml\App.xaml" />
</ItemGroup>
</Project>
Loading

0 comments on commit b8663d8

Please sign in to comment.