Skip to content

Commit

Permalink
Windows 10 1511 Release - June 2016 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnewthing committed Jun 2, 2016
2 parents 9e7fa28 + 259ad12 commit 5a30499
Show file tree
Hide file tree
Showing 108 changed files with 234 additions and 230 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The samples use Linked files in Visual Studio to reduce duplication of common fi

**Reminder:** If you unzip individual samples, they will not build due to references to other portions of the ZIP file that were not unzipped. You must unzip the entire archive if you intend to build the samples.

For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance, tutorials, and reference topics provided in the Windows 10 documentation available in the [Windows Developer Center](https://dev.windows.com). These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows.
For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance, tutorials, and reference topics provided in the Windows 10 documentation available in the [Windows Developer Center](http://go.microsoft.com/fwlink/?LinkID=532421). These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows.

## Contributions

Expand Down
2 changes: 1 addition & 1 deletion Samples/AllJoyn/ConsumerExperiences/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Specifically, this sample covers:

**Note** The Universal Windows samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/AllJoyn/ProducerExperiences/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Specifically, this sample covers:

**Note** The Universal Windows samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/AnimationLibrary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This sample is written in HTML, CSS, and JavaScript. For the XAML version, see t

**Note** The Universal Windows app samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/AnimationMetrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The sample shows the metrics involved in the following scenarios:

**Note** The Universal Windows app samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/ApplicationResources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ We encourage you to separate your resources, such as strings and files, from you

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/BarcodeScanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In addition to the devices listed, you can use barcode scanners from various man

**Note** The Universal Windows app samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/BasicFaceDetection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Specifically, this sample shows how to:

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/BasicFaceTracking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Specifically, this sample shows how to:

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/BasicInput/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Specifically, this sample shows how to:

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/BluetoothRfcommChat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ to communicate over sockets.

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/CallerID/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ See the Package.appxmanifest file for the extensions and capabilities a Caller I

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
18 changes: 9 additions & 9 deletions Samples/CameraFaceDetection/cpp/MainPage.xaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,27 +454,27 @@ task<void> MainPage::ReencodeAndSavePhotoAsync(Streams::IRandomAccessStream^ str
{
// Using this state variable to pass multiple values through our task chain
ReencodeState^ state = ref new ReencodeState();
state->_file = file;
state->_orientation = photoOrientation;
state->File = file;
state->Orientation = photoOrientation;

return create_task(BitmapDecoder::CreateAsync(stream))
.then([state](BitmapDecoder^ decoder)
{
state->_decoder = decoder;
return create_task(state->_file->OpenAsync(FileAccessMode::ReadWrite));
state->Decoder = decoder;
return create_task(state->File->OpenAsync(FileAccessMode::ReadWrite));
}).then([state](Streams::IRandomAccessStream^ outputStream)
{
return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->_decoder));
return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->Decoder));
}).then([state](BitmapEncoder^ encoder)
{
state->_encoder = encoder;
state->Encoder = encoder;
auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet();
properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->_orientation, Windows::Foundation::PropertyType::UInt16));
properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->Orientation, Windows::Foundation::PropertyType::UInt16));

return create_task(state->_encoder->BitmapProperties->SetPropertiesAsync(properties));
return create_task(state->Encoder->BitmapProperties->SetPropertiesAsync(properties));
}).then([state]()
{
return state->_encoder->FlushAsync();
return state->Encoder->FlushAsync();
});
}

Expand Down
8 changes: 4 additions & 4 deletions Samples/CameraFaceDetection/cpp/MainPage.xaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ namespace FaceDetection
ref class ReencodeState sealed
{
internal:
Windows::Graphics::Imaging::BitmapDecoder^ _decoder;
Windows::Graphics::Imaging::BitmapEncoder^ _encoder;
Windows::Storage::StorageFile^ _file;
Windows::Storage::FileProperties::PhotoOrientation _orientation;
Windows::Graphics::Imaging::BitmapDecoder^ Decoder;
Windows::Graphics::Imaging::BitmapEncoder^ Encoder;
Windows::Storage::StorageFile^ File;
Windows::Storage::FileProperties::PhotoOrientation Orientation;
};

public ref class MainPage sealed
Expand Down
34 changes: 17 additions & 17 deletions Samples/CameraHdr/cpp/MainPage.xaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,18 +447,18 @@ task<void> MainPage::TakeHdrPhotoAsync()
auto context = ref new AdvancedCaptureContext();

// Create file based off the current time
context->_captureFileName = L"SimplePhoto_" + GetTimeStr() + L".jpg";;
context->_captureOrientation = ConvertOrientationToPhotoOrientation(GetCameraOrientation());
context->CaptureFileName = L"SimplePhoto_" + GetTimeStr() + L".jpg";
context->CaptureOrientation = ConvertOrientationToPhotoOrientation(GetCameraOrientation());

return create_task(_advancedCapture->CaptureAsync(context))
.then([this, context](Capture::AdvancedCapturedPhoto^ photo)
{
context->_photo = photo;
return create_task(_captureFolder->CreateFileAsync(context->_captureFileName, CreationCollisionOption::GenerateUniqueName));
context->Photo = photo;
return create_task(_captureFolder->CreateFileAsync(context->CaptureFileName, CreationCollisionOption::GenerateUniqueName));
}).then([this, context](StorageFile^ file)
{
WriteLine("HDR photo taken! Saving to " + file->Path);
return ReencodeAndSavePhotoAsync(context->_photo->Frame, file, context->_captureOrientation);
return ReencodeAndSavePhotoAsync(context->Photo->Frame, file, context->CaptureOrientation);
}).then([this](task<void> previousTask)
{
try
Expand Down Expand Up @@ -516,27 +516,27 @@ task<void> MainPage::ReencodeAndSavePhotoAsync(Streams::IRandomAccessStream^ str
{
// Using this state variable to pass multiple values through our task chain
ReencodeState^ state = ref new ReencodeState();
state->_file = file;
state->_orientation = photoOrientation;
state->File = file;
state->Orientation = photoOrientation;

return create_task(BitmapDecoder::CreateAsync(stream))
.then([state](BitmapDecoder^ decoder)
{
state->_decoder = decoder;
return create_task(state->_file->OpenAsync(FileAccessMode::ReadWrite));
state->Decoder = decoder;
return create_task(state->File->OpenAsync(FileAccessMode::ReadWrite));
}).then([state](Streams::IRandomAccessStream^ outputStream)
{
return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->_decoder));
return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->Decoder));
}).then([state](BitmapEncoder^ encoder)
{
state->_encoder = encoder;
state->Encoder = encoder;
auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet();
properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->_orientation, Windows::Foundation::PropertyType::UInt16));
properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->Orientation, Windows::Foundation::PropertyType::UInt16));

return create_task(state->_encoder->BitmapProperties->SetPropertiesAsync(properties));
return create_task(state->Encoder->BitmapProperties->SetPropertiesAsync(properties));
}).then([state]()
{
return state->_encoder->FlushAsync();
return state->Encoder->FlushAsync();
});
}

Expand Down Expand Up @@ -1020,17 +1020,17 @@ void MainPage::AdvancedCapture_OptionalReferencePhotoCaptured(Capture::AdvancedP
{
// Retrieve the context (i.e. what capture does this belong to?)
auto context = static_cast<AdvancedCaptureContext^>(args->Context);
WriteLine("AdvancedCapture_OptionalReferencePhotoCaptured for " + context->_captureFileName);
WriteLine("AdvancedCapture_OptionalReferencePhotoCaptured for " + context->CaptureFileName);

// Remove "_HDR" from the name of the capture to create the name of the reference photo (this is the non-HDR capture)
std::wstringstream fileName;
fileName << context->_captureFileName->Data();
fileName << context->CaptureFileName->Data();
StringReplace(fileName.str(), std::wstring(L"_HDR"), std::wstring(L""));

create_task(_captureFolder->CreateFileAsync(ref new String(fileName.str().c_str()), CreationCollisionOption::GenerateUniqueName))
.then([this, args, context](StorageFile^ file)
{
ReencodeAndSavePhotoAsync(args->Frame, file, context->_captureOrientation);
ReencodeAndSavePhotoAsync(args->Frame, file, context->CaptureOrientation);
});
}

Expand Down
14 changes: 7 additions & 7 deletions Samples/CameraHdr/cpp/MainPage.xaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ namespace CameraHdr
ref class ReencodeState sealed
{
internal:
Windows::Graphics::Imaging::BitmapDecoder^ _decoder;
Windows::Graphics::Imaging::BitmapEncoder^ _encoder;
Windows::Storage::StorageFile^ _file;
Windows::Storage::FileProperties::PhotoOrientation _orientation;
Windows::Graphics::Imaging::BitmapDecoder^ Decoder;
Windows::Graphics::Imaging::BitmapEncoder^ Encoder;
Windows::Storage::StorageFile^ File;
Windows::Storage::FileProperties::PhotoOrientation Orientation;
};

/// <summary>
Expand All @@ -30,9 +30,9 @@ namespace CameraHdr
ref class AdvancedCaptureContext
{
internal:
Platform::String^ _captureFileName;
Windows::Storage::FileProperties::PhotoOrientation _captureOrientation;
Windows::Media::Capture::AdvancedCapturedPhoto^ _photo;
Platform::String^ CaptureFileName;
Windows::Storage::FileProperties::PhotoOrientation CaptureOrientation;
Windows::Media::Capture::AdvancedCapturedPhoto^ Photo;
};

public ref class MainPage sealed
Expand Down
18 changes: 9 additions & 9 deletions Samples/CameraStarterKit/cpp/MainPage.xaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,27 +388,27 @@ task<void> MainPage::ReencodeAndSavePhotoAsync(Streams::IRandomAccessStream^ str
{
// Using this state variable to pass multiple values through our task chain
ReencodeState^ state = ref new ReencodeState();
state->_file = file;
state->_orientation = photoOrientation;
state->File = file;
state->Orientation = photoOrientation;

return create_task(BitmapDecoder::CreateAsync(stream))
.then([state](BitmapDecoder^ decoder)
{
state->_decoder = decoder;
return create_task(state->_file->OpenAsync(FileAccessMode::ReadWrite));
state->Decoder = decoder;
return create_task(state->File->OpenAsync(FileAccessMode::ReadWrite));
}).then([state](Streams::IRandomAccessStream^ outputStream)
{
return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->_decoder));
return create_task(BitmapEncoder::CreateForTranscodingAsync(outputStream, state->Decoder));
}).then([state](BitmapEncoder^ encoder)
{
state->_encoder = encoder;
state->Encoder = encoder;
auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet();
properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->_orientation, Windows::Foundation::PropertyType::UInt16));
properties->Insert("System.Photo.Orientation", ref new BitmapTypedValue((unsigned short)state->Orientation, Windows::Foundation::PropertyType::UInt16));

return create_task(state->_encoder->BitmapProperties->SetPropertiesAsync(properties));
return create_task(state->Encoder->BitmapProperties->SetPropertiesAsync(properties));
}).then([state]()
{
return state->_encoder->FlushAsync();
return state->Encoder->FlushAsync();
});
}

Expand Down
8 changes: 4 additions & 4 deletions Samples/CameraStarterKit/cpp/MainPage.xaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ namespace CameraStarterKit
ref class ReencodeState sealed
{
internal:
Windows::Graphics::Imaging::BitmapDecoder^ _decoder;
Windows::Graphics::Imaging::BitmapEncoder^ _encoder;
Windows::Storage::StorageFile^ _file;
Windows::Storage::FileProperties::PhotoOrientation _orientation;
Windows::Graphics::Imaging::BitmapDecoder^ Decoder;
Windows::Graphics::Imaging::BitmapEncoder^ Encoder;
Windows::Storage::StorageFile^ File;
Windows::Storage::FileProperties::PhotoOrientation Orientation;
};

public ref class MainPage sealed
Expand Down
2 changes: 1 addition & 1 deletion Samples/CashDrawer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Specifically, this sample shows how to:

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/Clipboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This sample covers the following:

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
2 changes: 1 addition & 1 deletion Samples/CommunicationBlockAndFilter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ a communication blocking and filtering app must declare.

**Note** The Windows universal samples require Visual Studio 2015 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the [Windows Dev Center](https://dev.windows.com)
To obtain information about Windows 10 development, go to the [Windows Dev Center](http://go.microsoft.com/fwlink/?LinkID=532421)

To obtain information about Microsoft Visual Studio 2015 and the tools for developing Windows apps, go to [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=532422)

Expand Down
Loading

0 comments on commit 5a30499

Please sign in to comment.