Skip to content

Commit

Permalink
Windows 10 RTM Release - June 2016 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnewthing committed Jun 2, 2016
1 parent 6b62567 commit 259ad12
Show file tree
Hide file tree
Showing 105 changed files with 219 additions and 215 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
14 changes: 7 additions & 7 deletions Samples/CameraFaceDetection/cpp/MainPage.xaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,29 +450,29 @@ 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->_orientation = photoOrientation;
state->Orientation = photoOrientation;

return create_task(BitmapDecoder::CreateAsync(stream))
.then([state](BitmapDecoder^ decoder)
{
state->_decoder = decoder;
state->Decoder = decoder;
return create_task(KnownFolders::PicturesLibrary->CreateFileAsync("SimplePhoto.jpg", CreationCollisionOption::GenerateUniqueName));
}).then([](StorageFile^ file)
{
return create_task(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
6 changes: 3 additions & 3 deletions Samples/CameraFaceDetection/cpp/MainPage.xaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ namespace FaceDetection
ref class ReencodeState sealed
{
internal:
Windows::Graphics::Imaging::BitmapDecoder^ _decoder;
Windows::Graphics::Imaging::BitmapEncoder^ _encoder;
Windows::Storage::FileProperties::PhotoOrientation _orientation;
Windows::Graphics::Imaging::BitmapDecoder^ Decoder;
Windows::Graphics::Imaging::BitmapEncoder^ Encoder;
Windows::Storage::FileProperties::PhotoOrientation Orientation;
};

public ref class MainPage sealed
Expand Down
26 changes: 13 additions & 13 deletions Samples/CameraHdr/cpp/MainPage.xaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,14 @@ 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)
{
WriteLine("HDR photo taken!");
return ReencodeAndSavePhotoAsync(photo->Frame, context->_captureFileName, context->_captureOrientation);
return ReencodeAndSavePhotoAsync(photo->Frame, context->CaptureFileName, context->CaptureOrientation);
}).then([this](task<void> previousTask)
{
try
Expand Down Expand Up @@ -509,29 +509,29 @@ 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->_orientation = photoOrientation;
state->Orientation = photoOrientation;

return create_task(BitmapDecoder::CreateAsync(stream))
.then([state, fileName](BitmapDecoder^ decoder)
{
state->_decoder = decoder;
state->Decoder = decoder;
return create_task(KnownFolders::PicturesLibrary->CreateFileAsync(fileName, CreationCollisionOption::GenerateUniqueName));
}).then([](StorageFile^ file)
{
return create_task(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 @@ -1005,14 +1005,14 @@ 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
std::wstringstream fileName;
fileName << context->_captureFileName->Data();
fileName << context->CaptureFileName->Data();
StringReplace(fileName.str(), std::wstring(L"_HDR"), std::wstring(L""));

ReencodeAndSavePhotoAsync(args->Frame, ref new String(fileName.str().c_str()), context->_captureOrientation);
ReencodeAndSavePhotoAsync(args->Frame, ref new String(fileName.str().c_str()), context->CptureOrientation);
}

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

/// <summary>
Expand All @@ -29,8 +29,8 @@ namespace CameraHdr
ref class AdvancedCaptureContext
{
internal:
Platform::String^ _captureFileName;
Windows::Storage::FileProperties::PhotoOrientation _captureOrientation;
Platform::String^ CaptureFileName;
Windows::Storage::FileProperties::PhotoOrientation CaptureOrientation;
};

public ref class MainPage sealed
Expand Down
14 changes: 7 additions & 7 deletions Samples/CameraStarterKit/cpp/MainPage.xaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,29 +384,29 @@ 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->_orientation = photoOrientation;
state->Orientation = photoOrientation;

return create_task(BitmapDecoder::CreateAsync(stream))
.then([state](BitmapDecoder^ decoder)
{
state->_decoder = decoder;
state->Decoder = decoder;
return create_task(KnownFolders::PicturesLibrary->CreateFileAsync("SimplePhoto.jpg", CreationCollisionOption::GenerateUniqueName));
}).then([](StorageFile^ file)
{
return create_task(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
6 changes: 3 additions & 3 deletions Samples/CameraStarterKit/cpp/MainPage.xaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ namespace CameraStarterKit
ref class ReencodeState sealed
{
internal:
Windows::Graphics::Imaging::BitmapDecoder^ _decoder;
Windows::Graphics::Imaging::BitmapEncoder^ _encoder;
Windows::Storage::FileProperties::PhotoOrientation _orientation;
Windows::Graphics::Imaging::BitmapDecoder^ Decoder;
Windows::Graphics::Imaging::BitmapEncoder^ Encoder;
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
2 changes: 1 addition & 1 deletion Samples/ComplexInk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Specifically, this sample covers using the [**Windows.UI.Input.Inking**](http://
- All buttons and menu choices can be activated with mouse, pen, or touch.
- Message box at the bottom of the page will report any events generated by current active inking input devices.

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/CompositionVisual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The sample demonstrates the following:
**Note** The Universal Windows app samples require Visual Studio 2015 to build and Windows 10 to execute.
(See additional discussion below under **Prerequisites**.)

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 259ad12

Please sign in to comment.